mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Add initial frontend test for login
This commit is contained in:
14
test/cypress/e2e/frontend/Login.cy.js
Normal file
14
test/cypress/e2e/frontend/Login.cy.js
Normal file
@ -0,0 +1,14 @@
|
||||
/// <reference types="cypress" />
|
||||
|
||||
describe('Frontend Login', () => {
|
||||
it('Login works', function() {
|
||||
cy.intercept('/api/users/me*').as('getCurrentUser')
|
||||
|
||||
cy.visit("/")
|
||||
cy.get('input[name="identity"]').type("admin@example.com")
|
||||
cy.get('input[name="secret"]').type("changeme")
|
||||
cy.get('button[type=submit]').click()
|
||||
|
||||
cy.wait("@getCurrentUser")
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user