forked from trent_larson/crowd-funder-for-time-pwa
fix tests (from project-page switch 4 commits ago) and fix linting
This commit is contained in:
@@ -48,8 +48,8 @@ test('Create new project, then search for it', async ({ page }) => {
|
||||
|
||||
// Create new project
|
||||
await page.goto('./projects');
|
||||
await page.getByTestId('closeOnboardingAndFinish').click();
|
||||
await page.getByRole('link', { name: 'Projects', exact: true }).click();
|
||||
// close onboarding, but not with a click to go to the main screen
|
||||
await page.locator('div > svg.fa-xmark').click();
|
||||
await page.locator('button > svg.fa-plus').click();
|
||||
await page.getByPlaceholder('Idea Name').fill(finalTitle);
|
||||
await page.getByPlaceholder('Description').fill(finalDescription);
|
||||
@@ -64,8 +64,7 @@ test('Create new project, then search for it', async ({ page }) => {
|
||||
|
||||
// Search for newly-created project in /projects
|
||||
await page.goto('./projects');
|
||||
await page.getByRole('link', { name: 'Projects', exact: true }).click();
|
||||
await expect(page.locator('ul#listProjects li').filter({ hasText: finalTitle })).toBeVisible();
|
||||
await page.locator('ul#listProjects li').filter({ hasText: finalTitle });
|
||||
|
||||
// Search for newly-created project in /discover
|
||||
await page.goto('./discover');
|
||||
|
||||
Reference in New Issue
Block a user