Skip to content

Commit

Permalink
Fix cookie type in e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <obulat@gmail.com>
  • Loading branch information
obulat committed Apr 10, 2024
1 parent e1189f8 commit 9ce309b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/test/playwright/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export const preparePageForTests = async (
) => {
const { dismissBanners = true, dismissFilter = true } = options

const cookiesToSet: Record<string, unknown> = {
const cookiesToSet: CookieMap = {
ui: {
dismissedBanners: dismissBanners ? ALL_TEST_BANNERS : [],
isFilterDismissed: dismissFilter ?? false,
Expand Down Expand Up @@ -378,7 +378,7 @@ export interface CookieMap {

export const setCookies = async (
context: BrowserContext,
cookies: Record<string, unknown>
cookies: CookieMap
) => {
const existingCookies = await context.cookies()
const cookiesToSet = Object.entries(cookies).map(([name, value]) => {
Expand Down

0 comments on commit 9ce309b

Please sign in to comment.