patch: update integration tests

Signed-off-by: raulkele <raulkeleblk@gmail.com>
Signed-off-by: Raul-Cristian Kele <raulkeleblk@gmail.com>
This commit is contained in:
Raul-Cristian Kele 2023-08-15 19:46:51 +03:00 committed by Raul Kele
parent 8f4c23bf40
commit 087b42693f
5 changed files with 5 additions and 5 deletions

View File

@ -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', '{}');
});
});

View File

@ -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', '{}');
});
});

View File

@ -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', '{}');
});
});

View File

@ -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}`);

View File

@ -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', '{}');
});
});