údržba
This commit is contained in:
19
Playwright_GH_TS/lukan/tests/cookies.test.spec.ts
Normal file
19
Playwright_GH_TS/lukan/tests/cookies.test.spec.ts
Normal file
@ -0,0 +1,19 @@
|
||||
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();
|
||||
})
|
18
Playwright_GH_TS/lukan/tests/example.spec.ts
Normal file
18
Playwright_GH_TS/lukan/tests/example.spec.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('has title', async ({ page }) => {
|
||||
await page.goto('https://playwright.dev/');
|
||||
|
||||
// Expect a title "to contain" a substring.
|
||||
await expect(page).toHaveTitle(/Playwright/);
|
||||
});
|
||||
|
||||
test('get started link', async ({ page }) => {
|
||||
await page.goto('https://playwright.dev/');
|
||||
|
||||
// Click the get started link.
|
||||
await page.getByRole('link', { name: 'Get started' }).click();
|
||||
|
||||
// Expects the URL to contain intro.
|
||||
await expect(page).toHaveURL(/.*intro/);
|
||||
});
|
0
Playwright_GH_TS/lukan/tests/login.spec.ts
Normal file
0
Playwright_GH_TS/lukan/tests/login.spec.ts
Normal file
14
Playwright_GH_TS/lukan/tests/menuButton.test.spec.ts
Normal file
14
Playwright_GH_TS/lukan/tests/menuButton.test.spec.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { HomePage } from '../page-objects/HomePage';
|
||||
|
||||
test('Click menu button with HomePage' , async ({ page }) => {
|
||||
const homePage = new HomePage(page);
|
||||
await homePage.gotoHome();
|
||||
await homePage.clickUvodniStranaButton();
|
||||
await homePage.clickOMneButton();
|
||||
await homePage.clickZOOUButton();
|
||||
await homePage.clickPodporovateleButton();
|
||||
|
||||
//await context.close();
|
||||
//await browser.close();
|
||||
});
|
10
Playwright_GH_TS/lukan/tests/search.spec.ts
Normal file
10
Playwright_GH_TS/lukan/tests/search.spec.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { HomePage } from '../page-objects/HomePage';
|
||||
|
||||
test('Search web' , async ({ page }) => {
|
||||
const homePage = new HomePage(page);
|
||||
await homePage.gotoHome();
|
||||
await homePage.enterTextSearchFields();
|
||||
await homePage.clickSearchButton();
|
||||
|
||||
});
|
6
Playwright_GH_TS/lukan/tests/test-1.spec.ts
Normal file
6
Playwright_GH_TS/lukan/tests/test-1.spec.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test('test', async ({ page }) => {
|
||||
await page.goto('https://lukan.cz/');
|
||||
await page.getByRole('link', { name: 'Úvodní stránka' }).click();
|
||||
});
|
Reference in New Issue
Block a user