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:
parent
8f4c23bf40
commit
087b42693f
@ -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', '{}');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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', '{}');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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', '{}');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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}`);
|
||||
|
@ -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', '{}');
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user