Skip to content

Commit 7dee7e0

Browse files
authored
Merge branch 'main' into update-circleci-config
2 parents 164f739 + bd6ae24 commit 7dee7e0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tests/playwright/lib/internal_dashboard.page.ts

+4-5
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@ class InternalDashboard extends BasePage implements LoginInterface {
1414

1515
async login(username: string, password: string, display: string) {
1616
await this.verifyLocation('/internal_dashboard', 'XDMoD Internal Dashboard');
17-
await this.usernameLocator.isVisible();
18-
await this.passwordLocator.isVisible();
19-
await this.submitLocator.isVisible();
2017

2118
await this.usernameLocator.fill(username);
2219
await this.passwordLocator.fill(password);
2320
await this.submitLocator.click();
24-
await this.submitLocator.isHidden();
21+
await expect(this.submitLocator).toBeHidden();
2522

26-
await this.logoutLinkLocator.isVisible();
2723
await expect(this.loggedInDisplayLocator).toContainText(display);
24+
25+
const userManagementTab = this.page.locator(selectors.header.tabs.user_management());
26+
await expect(userManagementTab).toBeVisible({ timeout: 10_000 });
2827
}
2928

3029
async logout() {

tests/playwright/playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {PlaywrightTestConfig, devices} from '@playwright/test';
2-
// Comment to trigger CI man do I hate trello boards...
2+
33
const config: PlaywrightTestConfig = {
44
forbidOnly: !!process.env.CI,
55
retries: process.env.CI ? 2 : 0,

0 commit comments

Comments
 (0)