Skip to content

Commit

Permalink
Update system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Nov 14, 2024
1 parent 85da9dc commit 2ea2c48
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions system-tests/src/tests/glossary.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ test("glossary test", async ({ page, headless }, testInfo) => {
clearNotifications: true,
})

await page.fill('[placeholder="New term"]', "abcd")
await page.fill('textarea[name="New definition"]', "efgh")
await page.getByPlaceholder("New term").fill("abcd")
await page.getByPlaceholder("New definition").fill("efgh")

await page.click(`button:text-is("Save") >> visible=true`)
await page.locator(`div:text-is("Success")`).waitFor()
Expand Down Expand Up @@ -96,10 +96,10 @@ test("glossary test", async ({ page, headless }, testInfo) => {
})

// Fill [placeholder="updated term"]
await page.fill('[label="Updated term"]', "ABCD")
await page.getByPlaceholder("Updated term").fill("ABCD")

// Fill text=efgh
await page.fill('[label="Updated definition"]', "EFGH")
await page.getByPlaceholder("Updated definition").fill("EFGH")

await page.click(':nth-match(:text("Save"), 2)')

Expand Down

0 comments on commit 2ea2c48

Please sign in to comment.