mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 22:16:37 +02:00
✨ Remove unneeded draftsFile and newFile locators in dashboard POM
This commit is contained in:
parent
c14f783d94
commit
30edca024a
3 changed files with 6 additions and 9 deletions
|
@ -35,11 +35,12 @@ test("User goes to draft page", async ({ page }) => {
|
|||
await expect(dashboardPage.mainHeading).toHaveText("Drafts");
|
||||
});
|
||||
|
||||
test("User loads the draft page", async ({ page }) => {
|
||||
test("Lists files in the drafts page", async ({ page }) => {
|
||||
const dashboardPage = new DashboardPage(page);
|
||||
await dashboardPage.setupDrafts();
|
||||
|
||||
await dashboardPage.goToDrafts();
|
||||
|
||||
await expect(dashboardPage.draftsFile).toBeVisible();
|
||||
await expect(dashboardPage.page.getByRole("button", { name: /New File 1/ })).toBeVisible();
|
||||
await expect(dashboardPage.page.getByRole("button", { name: /New File 2/ })).toBeVisible();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue