utopia-ui/cypress/e2e/authentification/login.form-elements.cy.ts
mahula d69912ca35 Revert "make test fail to verify artefact upload"
This reverts commit 05a9b566892fb9393806db1e0b1ded1145311005.
2025-10-07 11:05:41 +02:00

34 lines
816 B
TypeScript

/// <reference types="cypress" />
describe('Utopia Map Login Form Elements', () => {
beforeEach(() => {
cy.clearCookies()
cy.clearLocalStorage()
cy.window().then((win) => {
win.sessionStorage.clear()
})
cy.visit('/login')
})
it('should be displayed correctly', () => {
cy.get('h2').should('contain.text', 'Login')
cy.get('input[type="email"]')
.should('be.visible')
.should('have.attr', 'placeholder', 'E-Mail')
cy.get('input[type="password"]')
.should('be.visible')
.should('have.attr', 'placeholder', 'Password')
cy.get('button:contains("Login")')
.should('be.visible')
.should('not.be.disabled')
cy.get('a[href="/reset-password"]')
.should('be.visible')
.should('contain.text', 'Forgot Password?')
})
})