Skip to content

Commit 888a711

Browse files
committed
More robust: abort, recent updates
1 parent 572fca1 commit 888a711

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/e2e/abort.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ describe("abort", () => {
3737

3838
// Make a search
3939
await page.goto("./#?lang=eng&corpus=vivill")
40-
await page.getByRole("textbox").fill("miljö")
40+
await page.getByRole("textbox").fill("trafikslag")
4141
await page.getByRole("button", { name: "Search" }).click()
4242

4343
// Start a new search
44-
await page.getByRole("textbox").fill("hund")
44+
await page.getByRole("textbox").fill("lagtext")
4545
await page.getByRole("button", { name: "Search" }).click()
4646

4747
// Check that the first search was aborted
4848
expect(abortedCounter.abortedCount).toBe(1)
49-
await expect(page.getByRole("table")).not.toContainText("miljö")
50-
await expect(page.getByRole("table")).toContainText("hund")
49+
await expect(page.getByRole("table")).not.toContainText("trafikslag")
50+
await expect(page.getByRole("table")).toContainText("lagtext")
5151
})
5252

5353
test("when paging quickly", async ({ page }) => {

test/e2e/corpus-selection.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe("changing corpus selection", () => {
9797
await page.getByText(`${title} was updated`).getByRole("button").click()
9898

9999
// Only the new corpus is selected
100-
await expect(page.locator("corpus-chooser")).toContainText(`${title} selected`)
100+
await expect(page.locator("corpus-chooser")).toContainText(`${title.slice(0, 20)}`)
101101
expect(getUrlParam(page.url())).toEqual(corpus.id)
102102
})
103103

0 commit comments

Comments
 (0)