danswer/web/tests/e2e/admin_auth.setup.ts
rkuo-danswer 58fdc86d41
fix chromatic save/upload (#3927)
* try adding back some params

* raise timeout

* update chromatic version

* fix typo

* use chromatic imports

* update gitignore

* slim down the config file

* update readme

---------

Co-authored-by: Richard Kuo (Danswer) <rkuo@onyx.app>
2025-02-06 22:02:14 +00:00

10 lines
384 B
TypeScript

// dependency for all admin user tests
import { test as setup } from "@chromatic-com/playwright";
setup("authenticate as admin", async ({ browser }) => {
const context = await browser.newContext({ storageState: "admin_auth.json" });
const page = await context.newPage();
await page.goto("http://localhost:3000/chat");
await page.waitForURL("http://localhost:3000/chat");
});