pull/195/head
Marcus Felling 2022-12-13 16:18:01 -06:00
parent c210dd8040
commit 3de0e51056
No known key found for this signature in database
GPG Key ID: 89EBCF55B58D842F
4 changed files with 12 additions and 12 deletions

View File

@ -9,10 +9,10 @@ test.describe('Discover', () => {
const categories = ['Microsoft', 'Mobile', 'Community', 'M365']; const categories = ['Microsoft', 'Mobile', 'Community', 'M365'];
for (const category of categories) { for (const category of categories) {
test(`should allow me to browse category ${category}`, async ({ page }) => { test(`should allow me to browse category ${category}`, async ({ page }) => {
// click on the category // click on the category
await page.getByRole('list').getByRole('link', { name: category }).click(); await page.getByRole('list').getByRole('link', { name: category }).click();
// assert category is selected // assert category is selected
await expect(page.locator('.titlePage')).toHaveText(category); await expect(page.locator('.titlePage')).toHaveText(category);
}); });
} }

View File

@ -9,9 +9,9 @@ test.describe('Settings', () => {
const settings = ['autodownload', 'deleteplayed', 'systemtheme', 'darktheme']; 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 }) => { test(`should allow me to toggle setting ${setting}`, async ({ page }) => {
// toggle setting // toggle setting
await page.locator(`input[name="${setting}"]`).check(); await page.locator(`input[name="${setting}"]`).check();
await page.locator(`input[name="${setting}"]`).uncheck(); await page.locator(`input[name="${setting}"]`).uncheck();
}); });
} }
}); });