Skip to content

Commit

Permalink
chore(tests): mise à jour des tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Jul 3, 2024
1 parent d3265af commit 515120a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 38 deletions.
2 changes: 1 addition & 1 deletion dist/extension/assets/icons/orange-icons-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/serveur/assets/icons/orange-icons-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/assets/icons/orange-icons-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 5 additions & 31 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
4 changes: 2 additions & 2 deletions src/app/pages/home/components/mode.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});
4 changes: 2 additions & 2 deletions src/app/pages/settings/settings.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit 515120a

Please sign in to comment.