fix tests (from project-page switch 4 commits ago) and fix linting

This commit is contained in:
2024-11-03 15:23:03 -07:00
parent 4168c37074
commit 67b2b7199a
8 changed files with 56 additions and 36 deletions

View File

@@ -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');