Skip to content

Commit

Permalink
Fix playwright tests for ProtoButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnei committed Jul 3, 2024
1 parent 5e15645 commit 553ffed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';

test.beforeEach(async ({ page, baseURL }) => {
await page.goto(baseURL);
await page.click('li[role="menuitem"]:has-text("Metadata")');
await page.click('button[role="menuitem"]:has-text("Metadata")');
});

test.describe('Test Metadata-Page', () => {
Expand Down
6 changes: 3 additions & 3 deletions tests/navigation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ test('Test: Navigation', async ({ page, baseURL }) => {
await expect(page).toHaveTitle("Opencast Editor");

// checks if Navbar on left has 4 elements
const length = await page.locator('#root > div > div > nav > li').count();
const length = await page.locator('#root > div > div > nav > button').count();
expect(length >= 2).toBeTruthy();

// Navigation to Finish
await page.click('li[role="menuitem"]:has-text("Finish")');
await page.click('button[role="menuitem"]:has-text("Finish")');

// Navigation to Cutting
await page.click('li[role="menuitem"]:has-text("Cutting")');
await page.click('button[role="menuitem"]:has-text("Cutting")');
});

0 comments on commit 553ffed

Please sign in to comment.