Skip to content

Commit

Permalink
closing contexts at all stages of fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Feb 6, 2024
1 parent 4c687d7 commit 91e99b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/fixtures/corpsum.fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const login = base.extend<NonNullable<unknown>, { account: Account }>({

export const search = login.extend<NonNullable<unknown>, { search: Search }>({
search: [{ term: "", corpus: "" }, { scope: "worker" }],
page: async ({ page, search }, use) => {
page: async ({ page, context, search }, use) => {
const { term, corpus } = search;
await page.getByRole("combobox").first().click();
const corpusPromise = page.waitForResponse(
Expand All @@ -44,5 +44,6 @@ export const search = login.extend<NonNullable<unknown>, { search: Search }>({
await page.getByPlaceholder("Your search term").press("Enter");
await wordformFreqsPromise;
await use(page);
await context.close();
},
});

0 comments on commit 91e99b0

Please sign in to comment.