diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 7c045a4f..7bc52a4a 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -2,7 +2,7 @@ name: tests on: push: - branches: [main, development, services] + branches: [main, development] pull_request: branches: [main, development] workflow_dispatch: diff --git a/frontend/src/test/e2e/login.cy.ts b/frontend/src/test/e2e/login.cy.ts deleted file mode 100644 index 2460f5da..00000000 --- a/frontend/src/test/e2e/login.cy.ts +++ /dev/null @@ -1,30 +0,0 @@ -// // cypress uses mocha and chai assertions by default -// // vitest are also based on these assertions, but they modified it a bit -// // expect().toBe in vitest would be expect().to.be in cypress -// // check out https://www.chaijs.com/api/bdd/ for more in detail explanation for assertions -// describe('login page', () => { -// beforeEach(() => { -// // these are e2e tests, they have access to the whole website, not a single component -// // for specific tests, we want to go to a specific parts of the website though -// // we use cy.visit for this, with input an absolute or relative url with https://localhost as current baseUrl -// cy.visit('/auth/login'); -// }); - -// it('routes to course when button clicked', () => { -// // we can check for elements in a web page using a selector or the contents of the element you're searching for -// cy.contains('UGent login'); // .click() - -// // then you can check whether the new url is correct -// // currently it seems to take too long to load, though -// // cy.url().should("include", "https://login.microsoft.com/") -// }); - -// it('routes to dashboard when pressing dashboard button', () => { -// cy.contains('Dashboard').click(); -// cy.url() -// // we check whether it ends with "/" -// .should('match', /\/$/) -// // we check whether we're not still on the login page -// .should('not.include', '/auth/login'); -// }); -// }); diff --git a/frontend/src/test/unit/admin_service.test.ts b/frontend/src/test/unit/admin_service.test.ts index 1a221a48..8d802efd 100644 --- a/frontend/src/test/unit/admin_service.test.ts +++ b/frontend/src/test/unit/admin_service.test.ts @@ -32,7 +32,7 @@ describe('admin', (): void => { await getAdmins(); expect(admins).not.toBeNull(); expect(Array.isArray(admins.value)).toBe(true); - expect(admins.value?.length).toBe(2); + expect(admins.value?.length).toBe(3); expect(admins.value?.[0]?.username).toBe('tverslyp'); expect(admins.value?.[0]?.is_staff).toBe(true);