From 087b42693f0e9d8c77150e737057d1721349e589 Mon Sep 17 00:00:00 2001 From: Raul-Cristian Kele Date: Tue, 15 Aug 2023 19:46:51 +0300 Subject: [PATCH] patch: update integration tests Signed-off-by: raulkele Signed-off-by: Raul-Cristian Kele --- tests/explore.spec.js | 2 +- tests/home.spec.js | 2 +- tests/navbar.spec.js | 2 +- tests/repo.spec.js | 2 +- tests/tag.spec.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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', '{}'); }); });