-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from lemon-suse/add-pom-main-page
Add POM of main screen of agama
- Loading branch information
Showing
3 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
export class MainPage { | ||
readonly page: Page; | ||
readonly accessStorageLink: Locator; | ||
readonly accessUsersLink: Locator; | ||
readonly installButton: Locator; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
this.accessStorageLink = page.getByRole('link', { name: 'Storage' }); | ||
this.accessUsersLink = page.getByRole('link', { name: 'Users' }); | ||
this.installButton = page.getByRole("button", { name: "Install", exact: true }); | ||
} | ||
|
||
async accessStorage() { | ||
await this.accessStorageLink.click(); | ||
} | ||
|
||
async accessUsers() { | ||
await this.accessUsersLink.click(); | ||
} | ||
|
||
async install() { | ||
await this.installButton.click(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters