tests: update node/edge IDs and properties in starter project (nightly fix) (#7099)

✨ (starter-projects.spec.ts): Increase timeout for waiting for elements to load to prevent test failures due to slow loading times
♻️ (starter-projects.spec.ts): Refactor code to use explicit wait times and improve readability
✨ (generalBugs-shard-3.spec.ts): Update drag and drop actions to include target positions for more accurate testing
♻️ (generalBugs-shard-3.spec.ts): Refactor code to remove unnecessary comments and improve test flow and readability
This commit is contained in:
Cristhian Zanforlin Lousa 2025-03-17 10:05:47 -03:00 • committed by GitHub
commit 4d9138fde2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 96 additions and 132 deletions

View file

@ -95,7 +95,7 @@ test(
await page.getByTestId("text_card_container").nth(i).click();
await page.waitForSelector('[data-testid="fit_view"]', {
timeout: 3000,
timeout: 5000,
});
if ((await page.getByTestId("update-all-button").count()) > 0) {
@ -109,11 +109,24 @@ test(
await page.getByTestId("icon-ChevronLeft").click();
await page.waitForSelector('[data-testid="mainpage_title"]', {
timeout: 3000,
timeout: 5000,
});
await page.waitForTimeout(500);
await page.waitForSelector('[data-testid="new-project-btn"]', {
timeout: 5000,
});
await page.getByTestId("new-project-btn").first().click();
await page.waitForSelector(
'[data-testid="side_nav_options_all-templates"]',
{
timeout: 5000,
},
);
await page.getByTestId("side_nav_options_all-templates").click();
}