test: update workflow configuration and Financial Agent JSON structure (nightly fix) (#7112)

*  (test_apply_json_filter.py): update test data generation to exclude whitespace characters and control characters in dictionary keys to improve data quality and reliability

* fix tests
This commit is contained in:
Cristhian Zanforlin Lousa 2025-03-17 17:54:21 -03:00 committed by GitHub
commit 9f331d67e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 167 additions and 148 deletions

View file

@ -16,7 +16,7 @@ on:
description: "Test suites to run (JSON array)"
required: false
type: string
default: '[]'
default: "[]"
release:
description: "Whether this is a release build"
required: false
@ -37,7 +37,7 @@ on:
description: "Test suites to run (JSON array)"
required: false
type: string
default: '[]'
default: "[]"
release:
description: "Whether this is a release build"
required: false
@ -195,12 +195,12 @@ jobs:
echo "Total tests to run: $TEST_COUNT"
# Calculate optimal shard count - 1 shard per 5 tests, min 1, max 10
# Calculate optimal shard count - 1 shard per 5 tests, min 1, max 15
SHARD_COUNT=$(( (TEST_COUNT + 4) / 5 ))
if [ $SHARD_COUNT -lt 1 ]; then
SHARD_COUNT=1
elif [ $SHARD_COUNT -gt 10 ]; then
SHARD_COUNT=10
elif [ $SHARD_COUNT -gt 15 ]; then
SHARD_COUNT=15
fi
# Create the matrix combinations string

File diff suppressed because one or more lines are too long

View file

@ -80,7 +80,8 @@ def test_complex_nested_access(data):
# Test array operations on objects
@given(data=st.lists(st.dictionaries(keys=st.text(), values=st.integers(), min_size=1), min_size=1))
@given(data=st.lists(st.dictionaries(keys=st.text(min_size=1).filter(lambda s: s.strip() and not any(c in s for c in "\r\n\t")),
values=st.integers(), min_size=1), min_size=1))
def test_array_object_operations(data):
if data and all(data):
key = next(iter(data[0]))

View file

@ -26,8 +26,12 @@ test(
await page.waitForSelector('[data-testid="inputsChat Input"]', {
timeout: 3000,
});
await page.getByTestId("inputsChat Input").hover({ timeout: 3000 });
await page.getByTestId("add-component-button-chat-input").click();
await page
.getByTestId("inputsChat Input")
.hover({ timeout: 3000 })
.then(async () => {
await page.getByTestId("add-component-button-chat-input").click();
});
await adjustScreenView(page);
await page.getByTestId("publish-button").click();

View file

@ -25,6 +25,8 @@ withEventDeliveryModes(
await page.getByRole("heading", { name: "Simple Agent" }).first().click();
await initialGPTsetup(page);
await page.getByTestId("textarea_str_input_value").first().fill("Hello");
await page.getByTestId("button_run_chat output").last().click();
await page.waitForSelector("text=built successfully", {
@ -39,7 +41,7 @@ withEventDeliveryModes(
const concatAllText = textContents.join(" ").toLowerCase();
expect(concatAllText).toContain("hello! how can i assist you today?");
expect(concatAllText.length).toBeGreaterThan(20);
expect(concatAllText).toContain("how can i assist you today?");
expect(concatAllText.length).toBeGreaterThan(10);
},
);

View file

@ -68,7 +68,7 @@ test(
.getByTestId("helpersMessage History")
.first()
.dragTo(page.locator('//*[@id="react-flow-id"]'), {
targetPosition: { x: 300, y: 500 },
targetPosition: { x: 200, y: 600 },
});
await initialGPTsetup(page, {
@ -90,7 +90,6 @@ AI:
await page.getByText("Edit Prompt", { exact: true }).click();
await page.getByText("Check & Save").last().click();
await page.getByTestId("fit_view").click();
await page.getByTestId("fit_view").click();
//connection 1
@ -136,7 +135,7 @@ AI:
await expect(textLocator.nth(1)).toBeVisible();
await page.waitForSelector("[data-testid='button-send']", {
timeout: 3000,
timeout: 3000 * 3,
});
const memoryResponseText = await page