zonemaster-gui/e2e/FR26.e2e-spec.ts
Gaël Berthaud-Müller 840f357501 update e2e tests
2024-02-26 17:01:21 +01:00

18 lines
750 B
TypeScript

const { test, expect } = require('@playwright/test');
import { goToHome, setLang } from './utils/app.utils';
test.describe('Zonemaster test FR26 - [Should be able to show a progress bar with a rough estimate of the total test progress]', () => {
test.beforeEach(async ({ page }) => {
await goToHome(page);
await setLang(page, 'en');
});
test('should display progress bar', async ({ page }) => {
await expect(page.locator('.progress-bar')).toBeHidden();
await page.locator('#domain-input').type('progress.afNiC.Fr');
await page.locator('button.launch').click();
await expect(page.locator('.progress-bar')).toBeVisible({ timeout: 10000});
await expect(page.locator('.progress-value')).toHaveText('50%');
});
});