Playwright_TS/Playwright_GH_TS/lukan/tests/cookies.test.spec.ts

19 lines
532 B
TypeScript
Raw Normal View History

2023-08-15 16:27:27 +00:00
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();
})