19 lines
532 B
TypeScript
19 lines
532 B
TypeScript
|
import { test, expect } from '@playwright/test';
|
||
|
import { HomePage } from '../page-objects/HomePage';
|
||
|
|
||
|
|
||
|
// test odsouhlasení cookies
|
||
|
test('HomePage click Accept cookies', async ({ page }) => {
|
||
|
|
||
|
const homePage = new HomePage(page);
|
||
|
await homePage.gotoHome();
|
||
|
await homePage.clickCookiesButtonAccept();
|
||
|
});
|
||
|
|
||
|
|
||
|
// test zamítnutí cookies
|
||
|
test('HomaPage click Decline cookies' , async ({page}) => {
|
||
|
const homePage = new HomePage(page);
|
||
|
await homePage.gotoHome();
|
||
|
await homePage.clickCookiesButtonDecline();
|
||
|
})
|