Skip to content

Commit

Permalink
patch: update integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: raulkele <[email protected]>
Signed-off-by: Raul-Cristian Kele <[email protected]>
  • Loading branch information
raulkele committed Aug 15, 2023
1 parent 8f4c23b commit 087b426
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/explore.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '{}');
});
});

Expand Down
2 changes: 1 addition & 1 deletion tests/home.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '{}');
});
});

Expand Down
2 changes: 1 addition & 1 deletion tests/navbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '{}');
});
});

Expand Down
2 changes: 1 addition & 1 deletion tests/repo.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion tests/tag.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', '{}');
});
});

Expand Down

0 comments on commit 087b426

Please sign in to comment.