Playwright_TS/Playwright_GH_TS/lukan/tests/cookies.test.spec.ts
Lukáš Kaňka a117466599 údržba
2023-08-15 18:27:27 +02:00

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();
})