We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccb6c4 commit 7b8df5fCopy full SHA for 7b8df5f
cypress/e2e/login.cy.js
@@ -31,6 +31,16 @@ describe('Login page', () => {
31
cy.url().should('include', '/dashboard/repo');
32
})
33
34
+ it('should show an error snackbar on invalid login', () => {
35
+ cy.get('[data-test="username"]').type('wronguser');
36
+ cy.get('[data-test="password"]').type('wrongpass');
37
+ cy.get('[data-test="login"]').click();
38
+
39
+ cy.get('.MuiSnackbarContent-message')
40
+ .should('be.visible')
41
+ .and('contain', 'You entered an invalid username or password...');
42
+ });
43
44
describe('OIDC login button', () => {
45
it('should exist', () => {
46
cy.get('[data-test="oidc-login"]').should('exist');
0 commit comments