diff --git a/webapp/e2e/admin.spec.ts b/webapp/e2e/admin.spec.ts new file mode 100644 index 00000000..f919475d --- /dev/null +++ b/webapp/e2e/admin.spec.ts @@ -0,0 +1,230 @@ +// The administration page: scans, tokens, members and a library's watch. + +import { expect, test } from "@playwright/test"; + +import { resetAndMockApi } from "./fixtures/api"; +import { library } from "./fixtures/catalogue"; +import { mock } from "./fixtures/state"; + +test.beforeEach(resetAndMockApi); + +/** + * Live scan progress. The stream is read with `fetch` and not `EventSource`, + * because the route authenticates on a bearer token and `EventSource` sends no + * headers — the same wall `