mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2026-04-03 17:31:21 +02:00
* with the drop of the "domain check" wording, components are also renamed to be more generic. * harmonize use of Camel case
18 lines
759 B
TypeScript
18 lines
759 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('#input_domain_form').type('progress.afNiC.Fr');
|
|
await page.locator('div button.launch').click();
|
|
await expect(page.locator('.progress-bar')).toBeVisible({ timeout: 10000});
|
|
await expect(page.locator('.progress-value')).toHaveText('50%');
|
|
});
|
|
});
|