Compare commits
6 Commits
e5b69b060b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 417cf3715b | |||
| f5194d4dbc | |||
| 3f68223d9b | |||
| 0f93b13b7b | |||
| 802a0fee46 | |||
| 3a09c8a270 |
@@ -11,6 +11,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
- name: Install Playwright Browsers
|
||||
run: npx playwright install
|
||||
run: npx playwright install --with-deps
|
||||
- name: Run Playwright tests
|
||||
run: npx playwright test --project=chromium --project=firefox
|
||||
@@ -4,7 +4,6 @@ import { expectedHalloText, expectedMainHeading,expectedHalloToHaveText2, expect
|
||||
|
||||
// TODO:
|
||||
// Footer
|
||||
// Theme
|
||||
|
||||
export class HomePage {
|
||||
readonly page: Page;
|
||||
@@ -35,7 +34,7 @@ export class HomePage {
|
||||
await this.page.goto(this.url);
|
||||
}
|
||||
|
||||
// Otestování, zda jsou všechny odkazy v menu viditelné
|
||||
// Otestování, zda jsou všechny odkazy v menu viditelné.
|
||||
async checkMenuTexts(expectedTexts: string[]) {
|
||||
for (const text of expectedTexts) {
|
||||
const item = this.page.getByText(text, { exact: true });
|
||||
@@ -50,8 +49,6 @@ export class HomePage {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// test interní odkazy
|
||||
async clickMenuItem(name: string) {
|
||||
await this.page.getByRole('link', { name: name, exact: true }).click();
|
||||
|
||||
Reference in New Issue
Block a user