mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Change login command to use data attribute selector
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
Cypress.Commands.add('login', username => {
|
||||
cy.clearLocalStorage()
|
||||
cy.visit('/login')
|
||||
cy.contains('Login', { timeout: 10000 }).click()
|
||||
cy.get('[data-cy="login-button"]', { timeout: 10000 }).should('be.visible').click()
|
||||
cy.get('[data-cy="username-basic"]').type(username)
|
||||
cy.get('[data-cy="password-basic"]').type('test')
|
||||
cy.get('[data-cy="login-button"]').click()
|
||||
|
||||
Reference in New Issue
Block a user