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

@@ -43,10 +43,10 @@ test('Create 10 new projects', async ({ page }) => {
for (let i = 0; i < projectCount; i++) {
await page.goto('./projects');
if (i === 0) {
await page.getByTestId('closeOnboardingAndFinish').click();
// close onboarding, but not with a click to go to the main screen
await page.locator('div > svg.fa-xmark').click();
}
await page.getByRole('link', { name: 'Projects', exact: true }).click();
await page.getByRole('button').click();
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]);
await page.getByPlaceholder('Website').fill(standardWebsite);