Skip to content
Snippets Groups Projects
Commit f5ed4e44 authored by VIktorGrev's avatar VIktorGrev
Browse files

fix: Fixing test

parents 6283f129 298ddbef
No related branches found
No related tags found
1 merge request!70Test/e2e
Pipeline #282044 passed with warnings
describe('NotFound Test', () => {
beforeEach(() => {
cy.visit('/login');
cy.get('#emailInput input').type('user@example.com');
cy.get('#passwordInput input').type('John1');
cy.get('form').submit();
cy.wait(1000);
cy.visit('/')
})
it('redirects user when page is not found, then go home', () => {
cy.visit('/non-existent-page')
cy.get('[data-cy="404-error"]').should('exist')
cy.get('[data-cy="to-home"]').click()
cy.url().should('include', '/')
})
})
\ No newline at end of file
......@@ -11,7 +11,7 @@
Beklager, det har oppstått en feil. Forespurt side ikke funnet!
</div>
<div class="error-actions">
<Button1 button-text="Ta meg hjem" @click="home" />
<Button1 button-text="Take Me Home" @click="home" />
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment