Enable CI enforcement and pre-commit hooks

This commit is contained in:
Scott Anderson
2026-07-28 22:13:11 -04:00
parent a407606f1c
commit d4b21f8f4e
4 changed files with 573 additions and 5 deletions

View File

@@ -46,12 +46,12 @@ export async function loginViaUI(page, { password, username }) {
* shared E2E user (via persisted storage state, no UI interaction required).
*/
export const test = base.extend({
authenticatedPage: async ({ browser }, use) => {
authenticatedPage: async ({ browser }, callback) => {
const ctx = await browser.newContext({
storageState: path.join(__dirname, '..', '.auth', 'state.json'),
})
const page = await ctx.newPage()
await use(page)
await callback(page)
await ctx.close()
},
})