From bac4c34d023c5a90af0e75c685490a3e97f96a9a Mon Sep 17 00:00:00 2001 From: bsilkyn Date: Wed, 22 May 2024 17:12:41 +0200 Subject: [PATCH] test: cleanup #434 --- frontend/cypress/support/e2e.ts | 23 +++++++------------ .../src/components/layout/base/BaseHeader.vue | 10 ++++++-- frontend/src/test/e2e/setup/data.ts | 15 ------------ frontend/src/test/e2e/setup/seed.ts | 20 ---------------- test.sh | 4 ++-- 5 files changed, 18 insertions(+), 54 deletions(-) delete mode 100644 frontend/src/test/e2e/setup/data.ts delete mode 100644 frontend/src/test/e2e/setup/seed.ts diff --git a/frontend/cypress/support/e2e.ts b/frontend/cypress/support/e2e.ts index edc31e4a..f553c558 100644 --- a/frontend/cypress/support/e2e.ts +++ b/frontend/cypress/support/e2e.ts @@ -44,21 +44,14 @@ const logout = () => { }); } -before(() => { - cy.intercept('POST', '/api/auth/cas/logout/', (req) => { - console.log('intercepted'); - req.headers['Referer'] = Cypress.config('baseUrl'); - - return req; - }); - - cy.request('POST', '/api/auth/test-user/student/'); - logout(); - cy.request('POST', '/api/auth/test-user/multi/'); - logout(); - cy.request('POST', '/api/auth/test-user/admin/'); - logout(); -}) +// before(() => { +// cy.request('POST', '/api/auth/test-user/student/'); +// logout(); +// cy.request('POST', '/api/auth/test-user/multi/'); +// logout(); +// cy.request('POST', '/api/auth/test-user/admin/'); +// logout(); +// }) afterEach(() => { logout(); diff --git a/frontend/src/components/layout/base/BaseHeader.vue b/frontend/src/components/layout/base/BaseHeader.vue index 519ecbe0..2a9b20e2 100644 --- a/frontend/src/components/layout/base/BaseHeader.vue +++ b/frontend/src/components/layout/base/BaseHeader.vue @@ -107,7 +107,13 @@ const items = computed(() => [