zonemaster-gui/e2e/FR26.e2e-spec.ts
Alexandre Pion 9999d89b6d Rename code components
* with the drop of the "domain check" wording, components are also
  renamed to be more generic.
* harmonize use of Camel case
2022-11-25 10:50:42 +01:00

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%');
});
});