Skip to content

Commit 572fca1

Browse files
committed
Select protected folder
1 parent cf20d14 commit 572fca1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/e2e/corpus-selection.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,15 @@ describe("changing corpus selection", () => {
100100
await expect(page.locator("corpus-chooser")).toContainText(`${title} selected`)
101101
expect(getUrlParam(page.url())).toEqual(corpus.id)
102102
})
103+
104+
test("select folder with protected corpora", async ({ page }) => {
105+
await page.goto("/#?lang=eng&corpus=attasidor")
106+
await expect(page.locator("corpus-chooser")).toBeVisible() // Wait for initialization
107+
108+
// Select a folder with protected and non-protected corpora
109+
await page.locator("corpus-chooser").click()
110+
await page.getByText("L2 Korp").click()
111+
await expect(page.locator("corpus-chooser")).toContainText("4 of")
112+
expect(getUrlParam(page.url())).toEqual("attasidor,coctaill-ae,coctaill-lt,coctaill")
113+
})
103114
})

0 commit comments

Comments
 (0)