Skip to content

Commit

Permalink
test(pix-site): adapt e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lego-technix committed Sep 28, 2024
1 parent cf4901b commit 56d46c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions pix-site/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ export default defineConfig({
/* Run your local dev server before starting the tests */
webServer: [
{
command: 'PORT=7001 SITE_DOMAIN=ORG DOMAIN_ORG=http://localhost:7001 DOMAIN_FR=http://localhost:7002 npm run dev',
url: 'http://localhost:7001',
reuseExistingServer: !process.env.CI,
},
{
command: 'PORT=7002 SITE_DOMAIN=FR DOMAIN_ORG=http://localhost:7001 DOMAIN_FR=http://localhost:7002 npm run dev',
url: 'http://localhost:7002',
command: 'PORT=7001 SITE_DOMAIN=ORG DOMAIN_ORG=http://localhost:7001 DOMAIN_FR=http://localhost:7001 npm run dev',
url: 'http://localhost:7001/',
reuseExistingServer: !process.env.CI,
},
],
Expand Down
6 changes: 3 additions & 3 deletions pix-site/tests/e2e/layout/footer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { test, expect } from '@playwright/test';

test.describe('layout/footer', () => {
test('visible elements', async ({ page }) => {
await page.goto('/', {
await page.goto('/fr-fr/', {
waitUntil: 'networkidle',
});
await page.getByText('France').click();
await page.waitForLoadState('networkidle');
// await page.getByText('France').click();
// await page.waitForLoadState('networkidle');

const siteFooter = page.getByRole('contentinfo');

Expand Down
2 changes: 1 addition & 1 deletion pix-site/tests/e2e/layout/header.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';

test.describe('layout/header', () => {
test('should display elements visible in header', async ({ page }) => {
await page.goto('http://localhost:7002/', {
await page.goto('/fr-fr/', {
waitUntil: 'networkidle',
});

Expand Down

0 comments on commit 56d46c9

Please sign in to comment.