From 3de0e51056b4e235f34d0321b204be63d6f62a04 Mon Sep 17 00:00:00 2001 From: Marcus Felling Date: Tue, 13 Dec 2022 16:18:01 -0600 Subject: [PATCH] format --- src/Web/E2E/tests/discover.spec.ts | 8 ++++---- src/Web/E2E/tests/listen-later.spec.ts | 2 +- src/Web/E2E/tests/listen-together.spec.ts | 4 ++-- src/Web/E2E/tests/settings.spec.ts | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Web/E2E/tests/discover.spec.ts b/src/Web/E2E/tests/discover.spec.ts index e8c5f96..1d4a5f0 100644 --- a/src/Web/E2E/tests/discover.spec.ts +++ b/src/Web/E2E/tests/discover.spec.ts @@ -9,10 +9,10 @@ test.describe('Discover', () => { const categories = ['Microsoft', 'Mobile', 'Community', 'M365']; for (const category of categories) { test(`should allow me to browse category ${category}`, async ({ page }) => { - // click on the category - await page.getByRole('list').getByRole('link', { name: category }).click(); - // assert category is selected - await expect(page.locator('.titlePage')).toHaveText(category); + // click on the category + await page.getByRole('list').getByRole('link', { name: category }).click(); + // assert category is selected + await expect(page.locator('.titlePage')).toHaveText(category); }); } diff --git a/src/Web/E2E/tests/listen-later.spec.ts b/src/Web/E2E/tests/listen-later.spec.ts index 822fd7a..bb9439a 100644 --- a/src/Web/E2E/tests/listen-later.spec.ts +++ b/src/Web/E2E/tests/listen-later.spec.ts @@ -11,6 +11,6 @@ test.describe('Listen Later', () => { await page.getByRole('link', { name: 'Listen Later' }).click(); await expect(page).toHaveURL('/listen-later'); // assert no results page isn't shown - await expect(page.locator('main')).not.toContainText('no results'); + await expect(page.locator('main')).not.toContainText('no results'); }); }); \ No newline at end of file diff --git a/src/Web/E2E/tests/listen-together.spec.ts b/src/Web/E2E/tests/listen-together.spec.ts index 1c834c9..7471638 100644 --- a/src/Web/E2E/tests/listen-together.spec.ts +++ b/src/Web/E2E/tests/listen-together.spec.ts @@ -14,8 +14,8 @@ test.describe('Listen Together', () => { await page.getByRole('button', { name: 'Create new room' }).click(); await page.getByPlaceholder('Your name').fill('test'); // open room - await page.getByRole('button', { name: 'Open room' }).click(); + await page.getByRole('button', { name: 'Open room' }).click(); // leave the room - await page.getByRole('button', { name: 'Leave the room' }).click(); + await page.getByRole('button', { name: 'Leave the room' }).click(); }); }); \ No newline at end of file diff --git a/src/Web/E2E/tests/settings.spec.ts b/src/Web/E2E/tests/settings.spec.ts index 3fbc39c..8905bf5 100644 --- a/src/Web/E2E/tests/settings.spec.ts +++ b/src/Web/E2E/tests/settings.spec.ts @@ -7,11 +7,11 @@ test.beforeEach(async ({ page }) => { test.describe('Settings', () => { // Loop through each setting const settings = ['autodownload', 'deleteplayed', 'systemtheme', 'darktheme']; - for (const setting of settings) { + for (const setting of settings) { test(`should allow me to toggle setting ${setting}`, async ({ page }) => { - // toggle setting - await page.locator(`input[name="${setting}"]`).check(); - await page.locator(`input[name="${setting}"]`).uncheck(); - }); + // toggle setting + await page.locator(`input[name="${setting}"]`).check(); + await page.locator(`input[name="${setting}"]`).uncheck(); + }); } }); \ No newline at end of file