From 515120ae500d738bd1a81f35e7e9523ec30ef99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Wed, 3 Jul 2024 11:58:04 +0200 Subject: [PATCH] =?UTF-8?q?chore(tests):=20mise=20=C3=A0=20jour=20des=20te?= =?UTF-8?q?sts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/icons/orange-icons-sprite.svg | 2 +- .../assets/icons/orange-icons-sprite.svg | 2 +- docs/assets/icons/orange-icons-sprite.svg | 2 +- playwright.config.ts | 36 +++---------------- .../home/components/mode.component.spec.ts | 4 +-- .../pages/settings/settings.component.spec.ts | 4 +-- 6 files changed, 12 insertions(+), 38 deletions(-) diff --git a/dist/extension/assets/icons/orange-icons-sprite.svg b/dist/extension/assets/icons/orange-icons-sprite.svg index c16f88d6..fffa4c52 100644 --- a/dist/extension/assets/icons/orange-icons-sprite.svg +++ b/dist/extension/assets/icons/orange-icons-sprite.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/serveur/assets/icons/orange-icons-sprite.svg b/dist/serveur/assets/icons/orange-icons-sprite.svg index c16f88d6..fffa4c52 100644 --- a/dist/serveur/assets/icons/orange-icons-sprite.svg +++ b/dist/serveur/assets/icons/orange-icons-sprite.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/assets/icons/orange-icons-sprite.svg b/docs/assets/icons/orange-icons-sprite.svg index c16f88d6..fffa4c52 100644 --- a/docs/assets/icons/orange-icons-sprite.svg +++ b/docs/assets/icons/orange-icons-sprite.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/playwright.config.ts b/playwright.config.ts index bbcd7051..68fa1c91 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -36,42 +36,16 @@ export default defineConfig({ name: 'chromium', use: { ...devices['Desktop Chrome'] }, }, - { name: 'firefox', use: { ...devices['Desktop Firefox'] }, }, - - { - name: 'webkit', - use: { ...devices['Desktop Safari'] }, - }, - - /* Test against mobile viewports. */ - // { - // name: 'Mobile Chrome', - // use: { ...devices['Pixel 5'] }, - // }, - // { - // name: 'Mobile Safari', - // use: { ...devices['iPhone 12'] }, - // }, - - /* Test against branded browsers. */ - // { - // name: 'Microsoft Edge', - // use: { ...devices['Desktop Edge'], channel: 'msedge' }, - // }, - // { - // name: 'Google Chrome', - // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, - // }, ], /* Run your local dev server before starting the tests */ - // webServer: { - // command: 'npm run start', - // url: 'http://127.0.0.1:3000', - // reuseExistingServer: !process.env.CI, - // }, + webServer: { + command: 'npm start', + url: 'http://localhost:9010', + reuseExistingServer: !process.env.CI, + }, }); diff --git a/src/app/pages/home/components/mode.component.spec.ts b/src/app/pages/home/components/mode.component.spec.ts index 99b7913a..b405bd49 100644 --- a/src/app/pages/home/components/mode.component.spec.ts +++ b/src/app/pages/home/components/mode.component.spec.ts @@ -5,8 +5,8 @@ test.beforeEach(async ({ page }) => { }); test.describe('Mode initialization : ', () => { - test('should have 11 settings ', async ({ page }) => { + test('should have 22 settings ', async ({ page }) => { expect(page.getByTestId('mode-content')); - expect(await page.locator('.sc-mode__setting').count()).toEqual(11); + expect(await page.locator('.sc-mode__setting').count()).toEqual(22); }); }); diff --git a/src/app/pages/settings/settings.component.spec.ts b/src/app/pages/settings/settings.component.spec.ts index ee107cc0..8c73cb17 100644 --- a/src/app/pages/settings/settings.component.spec.ts +++ b/src/app/pages/settings/settings.component.spec.ts @@ -5,9 +5,9 @@ test.beforeEach(async ({ page }) => { }); test.describe('Settings initialization : ', () => { - test('should have 4 categories ', async ({ page }) => { + test('should have 5 categories ', async ({ page }) => { await page.locator('#confort').click(); await page.locator('#settings-btn').click(); - expect(await page.locator('.c-settings__category').count()).toEqual(4); + expect(await page.locator('.c-settings__category').count()).toEqual(5); }); });