mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 01:16:18 +02:00
✨ Remove redundant locators for Dashboard POM
This commit is contained in:
parent
8f3452c0af
commit
c14f783d94
3 changed files with 18 additions and 27 deletions
|
@ -12,7 +12,7 @@ test("Dashboad page has title ", async ({ page }) => {
|
|||
await dashboardPage.goToDashboard();
|
||||
|
||||
await expect(dashboardPage.page).toHaveURL(/dashboard/);
|
||||
await expect(dashboardPage.projectsHeading).toBeVisible();
|
||||
await expect(dashboardPage.mainHeading).toBeVisible();
|
||||
});
|
||||
|
||||
test("User can create a new project", async ({ page }) => {
|
||||
|
@ -32,7 +32,7 @@ test("User goes to draft page", async ({ page }) => {
|
|||
await dashboardPage.goToDashboard();
|
||||
await dashboardPage.draftsLink.click();
|
||||
|
||||
await expect(dashboardPage.draftsTitle).toBeVisible();
|
||||
await expect(dashboardPage.mainHeading).toHaveText("Drafts");
|
||||
});
|
||||
|
||||
test("User loads the draft page", async ({ page }) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue