From 6f282f984de3769ca0f28d605a6260bcc0a47466 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Tue, 20 Jun 2023 11:37:47 +0200 Subject: [PATCH] test: remove useless navigation to /login while logging in via command Part-of: --- front/cypress/support/commands.ts | 5 ----- 1 file changed, 5 deletions(-) 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',