feature/rename-lists-to-projects__rebased #2978

Merged
konrad merged 15 commits from dpschen/frontend:feature/rename-lists-to-projects__rebased into main 2023-03-14 14:04:25 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit b958c5f197 - Show all commits

View File

@ -1,12 +1,14 @@
import {UserFactory} from '../../factories/user'
const testAndAssertFailed = fixture => {
cy.intercept(Cypress.env('API_URL') + '/login*').as('login')
cy.visit('/login')
cy.get('input[id=username]').type(fixture.username)
cy.get('input[id=password]').type(fixture.password)
cy.get('.button').contains('Login').click()
cy.wait(5000) // It can take waaaayy too long to log the user in
cy.wait('@login')
cy.url().should('include', '/')
cy.get('div.message.danger').contains('Wrong username or password.')
}