Skip to content

Commit

Permalink
Merge pull request #62 from Limerio/e2e-tests
Browse files Browse the repository at this point in the history
e2e tests
  • Loading branch information
Limerio authored Apr 30, 2024
2 parents 2bdde1d + 5d1953c commit 5f54451
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 144 deletions.
23 changes: 0 additions & 23 deletions tests/home.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,6 @@ test("Theme", async ({ page }) => {
await page.getByRole("menuitem", { name: "System" }).click()
})

test("Create place with dialog", async ({ page }) => {
await page.getByRole("button", { name: "Add" }).click()
await page.getByLabel("Building").click()
await page.getByLabel("Bar").click()
await page.getByPlaceholder("Name of the building....").click()
await page.getByPlaceholder("Name of the building....").fill("Random Name")
await page.getByPlaceholder("Name of the building....").press("Tab")
await page
.getByPlaceholder("Which city are the building ?")
.fill("Random City")
await page.getByPlaceholder("Which city are the building ?").press("Tab")
await page.getByPlaceholder("What is the zipcode ?").fill("12345")
await page.getByPlaceholder("What is the zipcode ?").press("Tab")
await page.getByPlaceholder("Which country are the").fill("Random Country")
await page.getByRole("button", { name: "Next" }).click()
await page.getByLabel("Bar").click()
await page.getByLabel("Cocktail").getByText("Cocktail").click()

await page.getByRole("button", { name: "Next" }).click()
await page.getByLabel("Create a place").getByText("Bar").click()
await page.getByRole("button", { name: "Finish" }).click()
})

test("Pagination", async ({ page }) => {
await expect(page.getByRole("button", { name: "Previous" })).toBeDisabled()
await page.getByRole("button", { name: "Next" }).click()
Expand Down
121 changes: 0 additions & 121 deletions tests/places/create.spec.js

This file was deleted.

0 comments on commit 5f54451

Please sign in to comment.