Skip to content

Commit f88eb7a

Browse files
authored
test: add Cypress login smoke test (#18)
* feat(members): add invitation and member management UI (ref Sentinent-AI/Sentinent#15) * test(e2e): add Cypress login smoke test
1 parent 007292e commit f88eb7a

4 files changed

Lines changed: 1792 additions & 38 deletions

File tree

cypress.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'cypress';
2+
3+
export default defineConfig({
4+
e2e: {
5+
baseUrl: 'http://localhost:4200',
6+
specPattern: 'cypress/e2e/**/*.cy.ts',
7+
supportFile: false,
8+
},
9+
});

cypress/e2e/login.cy.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
describe('Login page', () => {
2+
it('opens the forgot password form and fills the email field', () => {
3+
cy.visit('/login');
4+
5+
cy.contains('button', 'Forgot password?').click();
6+
cy.contains('label', 'Work Email').should('be.visible');
7+
cy.get('input[name="forgotEmail"]').type('user@example.com');
8+
cy.get('input[name="forgotEmail"]').should('have.value', 'user@example.com');
9+
});
10+
});

0 commit comments

Comments
 (0)