fix(playwright): re-route after affirming onboarding dialog

After calling OnboardingDialog from ProjectsView, route back to projects page again

The onboarding dialog was designed to route back to HomeView when called from ProjectsView. The tests need to be updated to account for this intended behavior.
This commit is contained in:
Jose Olarte III
2025-09-09 15:57:36 +08:00
parent 7b40012df4
commit 6fb4ceab81
2 changed files with 4 additions and 0 deletions

View File

@@ -117,6 +117,8 @@ test('Create new project, then search for it', async ({ page }) => {
// No onboarding dialog present, continue
console.log('No onboarding dialog found on projects page');
}
// Route back to projects page again, because the onboarding dialog was designed to route to HomeView when called from ProjectsView
await page.goto('./projects');
await page.locator('button > svg.fa-plus').click();
await page.getByPlaceholder('Idea Name').fill(finalTitle);
await page.getByPlaceholder('Description').fill(finalDescription);