forked from trent_larson/crowd-funder-for-time-pwa
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user