Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'cypress';

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:4200',
specPattern: 'cypress/e2e/**/*.cy.ts',
supportFile: false,
},
});
10 changes: 10 additions & 0 deletions cypress/e2e/login.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
describe('Login page', () => {
it('opens the forgot password form and fills the email field', () => {
cy.visit('/login');

cy.contains('button', 'Forgot password?').click();
cy.contains('label', 'Work Email').should('be.visible');
cy.get('input[name="forgotEmail"]').type('user@example.com');
cy.get('input[name="forgotEmail"]').should('have.value', 'user@example.com');
});
});
Loading
Loading