-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add e2e test for creating a cube collection
- Loading branch information
1 parent
5eca39d
commit 64070ad
Showing
7 changed files
with
45 additions
and
28 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,23 @@ | ||
import { test, expect } from "@playwright/test"; | ||
|
||
test("should create a cube", async ({ page }) => { | ||
await page.locator("body").click(); | ||
await expect(page.getByTestId("main-cube-selector")).toBeVisible(); | ||
await page.getByTestId("main-cube-selector").click(); | ||
await expect( | ||
page.getByRole("button", { name: "New collection" }) | ||
).toBeVisible(); | ||
await page.getByRole("button", { name: "New collection" }).click(); | ||
await expect(page.getByTestId("empty-cubes-container")).toBeVisible(); | ||
await expect(page.getByTestId("create-collection-button")).toBeVisible(); | ||
await page.getByTestId("create-collection-button").click(); | ||
await expect(page.getByTestId("drawer-create-collection")).toBeVisible(); | ||
await expect(page.getByTestId("drawer-input-name")).toBeVisible(); | ||
await expect(page.getByTestId("drawer-accept-button")).toBeVisible(); | ||
await expect(page.getByTestId("drawer-cancel-button")).toBeVisible(); | ||
await page.getByTestId("drawer-input-name").click(); | ||
await page.getByTestId("drawer-input-name").fill("experimental"); | ||
await page.getByTestId("checkbox-category-3x3").click(); | ||
await page.getByTestId("drawer-accept-button").click(); | ||
await expect(page.getByTestId("cube-name-experimental")).toBeVisible(); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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