diff --git a/tests/explore.spec.js b/tests/explore.spec.js index d122d17f..0e56b777 100644 --- a/tests/explore.spec.js +++ b/tests/explore.spec.js @@ -7,7 +7,7 @@ import { hosts, endpoints, sortCriteria } from './values/test-constants'; test.describe('explore page test', () => { test.beforeEach(async ({ page }) => { await page.addInitScript(() => { - window.localStorage.setItem('token', '-'); + window.localStorage.setItem('authConfig', '{}'); }); }); diff --git a/tests/home.spec.js b/tests/home.spec.js index e4a0a9cb..ee6f7336 100644 --- a/tests/home.spec.js +++ b/tests/home.spec.js @@ -5,7 +5,7 @@ import { hosts, endpoints, sortCriteria } from './values/test-constants'; test.describe('homepage test', () => { test.beforeEach(async ({ page }) => { await page.addInitScript(() => { - window.localStorage.setItem('token', '-'); + window.localStorage.setItem('authConfig', '{}'); }); }); diff --git a/tests/navbar.spec.js b/tests/navbar.spec.js index f2af1b31..2bdc8a64 100644 --- a/tests/navbar.spec.js +++ b/tests/navbar.spec.js @@ -5,7 +5,7 @@ import { getRepoListOrderedAlpha } from './utils/test-data-parser'; test.describe('navbar test', () => { test.beforeEach(async ({ page }) => { await page.addInitScript(() => { - window.localStorage.setItem('token', '-'); + window.localStorage.setItem('authConfig', '{}'); }); }); diff --git a/tests/repo.spec.js b/tests/repo.spec.js index 735b2193..687b715b 100644 --- a/tests/repo.spec.js +++ b/tests/repo.spec.js @@ -8,7 +8,7 @@ const testRepo = getMultiTagRepo(); test.describe('Repository page test', () => { test.beforeEach(async ({ page }) => { await page.addInitScript(() => { - window.localStorage.setItem('token', '-'); + window.localStorage.setItem('authConfig', '{}'); }); await page.goto(`${hosts.ui}/image/${testRepo.repo}`); diff --git a/tests/tag.spec.js b/tests/tag.spec.js index 53462f63..bc18be72 100644 --- a/tests/tag.spec.js +++ b/tests/tag.spec.js @@ -5,7 +5,7 @@ import { hosts, pageSizes } from './values/test-constants'; test.describe('Tag page test', () => { test.beforeEach(async ({ page }) => { await page.addInitScript(() => { - window.localStorage.setItem('token', '-'); + window.localStorage.setItem('authConfig', '{}'); }); });