mirror of
https://github.com/zonemaster/zonemaster-gui.git
synced 2025-06-25 16:43:30 +02:00
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
const { test, expect } = require('@playwright/test');
|
|
|
|
import { goToHome, clearBrowserCache, showOptions } from './utils/app.utils';
|
|
|
|
test.describe('Zonemaster test FR10 - [On launching the URL opens with a default simple view]', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await goToHome(page);
|
|
await clearBrowserCache(page);
|
|
});
|
|
|
|
test('should have [Run domain test] label visible', async ({ page }) => {
|
|
await expect(page.locator('h1', { hasText: 'Check how your domain is doing'})).toBeVisible();
|
|
});
|
|
|
|
test('should have [Options] label visible and NOT selected', async ({ page }) => {
|
|
await expect(page.locator('#advanced-toggle', { hasText: 'Show options' })).toBeVisible();
|
|
|
|
await expect(page.locator('#advanced-options')).not.toHaveAttribute('open');
|
|
});
|
|
|
|
|
|
test('should have [Nameservers label] NOT visible', async ({ page }) => {
|
|
await expect(page.locator('legend', { hasText: 'Nameservers'})).toBeHidden();
|
|
});
|
|
|
|
test('should have [DS records label] NOT visible', async ({ page }) => {
|
|
await expect(page.locator('legend', { hasText: 'DS records'})).toBeHidden();
|
|
});
|
|
});
|