♻️(app-desk) adapt La Gaufre

Adapt La Gaufre with the new configuration.
This commit is contained in:
Anthony LC
2024-05-13 16:19:48 +02:00
committed by Anthony LC
parent 76e9d58b6c
commit 46aaf7351d
7 changed files with 56 additions and 49 deletions

View File

@@ -28,7 +28,9 @@ test.describe('Header', () => {
);
await expect(
header.getByText('Les applications de La Suite numérique'),
header.getByRole('button', {
name: 'Les services de La Suite numérique',
}),
).toBeVisible();
await expect(header.getByAltText('Language Icon')).toBeVisible();
@@ -52,4 +54,33 @@ test.describe('Header', () => {
await expect(page.getByRole('button', { name: 'Sign in' })).toBeVisible();
});
test('checks La Gauffre interaction', async ({ page }) => {
const header = page.locator('header').first();
await expect(
header.getByRole('button', {
name: 'Les services de La Suite numérique',
}),
).toBeVisible();
/**
* La gaufre load a js file from a remote server,
* it takes some time to load the file and have the interaction available
*/
// eslint-disable-next-line playwright/no-wait-for-timeout
await page.waitForTimeout(1500);
await header
.getByRole('button', {
name: 'Les services de La Suite numérique',
})
.click();
await expect(
page.getByRole('link', { name: 'France Transfert' }),
).toBeVisible();
await expect(page.getByRole('link', { name: 'Grist' })).toBeVisible();
});
});