diff --git a/front/cypress/support/commands.ts b/front/cypress/support/commands.ts index e82d83ce9..f5036c174 100644 --- a/front/cypress/support/commands.ts +++ b/front/cypress/support/commands.ts @@ -1,13 +1,8 @@ -// Currently we cannot login purely programmatically, so we need to use the -// graphical login until the vue3 branch is merged Cypress.Commands.add('login', () => { cy.fixture('testuser.json').then(({ username, password }) => { // We need to request a page that sets the csrf cookie cy.request('/api/v1/instance/nodeinfo/2.0/') - // Then we can login - cy.visit('/login') - cy.getCookie('csrftoken').then(($cookie) => { cy.request({ method: 'POST',