forked from jsnbuchanan/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:
@@ -137,6 +137,8 @@ test('Create 10 new projects', async ({ page }) => {
|
||||
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(finalTitles[i]); // Add random suffix
|
||||
await page.getByPlaceholder('Description').fill(finalDescriptions[i]);
|
||||
|
||||
Reference in New Issue
Block a user