mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
✨ Remove unneeded draftsFile and newFile locators in dashboard POM
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user