mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
feat(project): add automated testing with cypress (#3305)
* feat(project): add automated testing with cypress * feat(project): made suggested edits * feat(project): add init test * feat(project): add socket to correct container
This commit is contained in:
parent
542b76912a
commit
91c83eccd2
7 changed files with 106 additions and 0 deletions
21
test/e2e/cypress/integration/spec.js
Normal file
21
test/e2e/cypress/integration/spec.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Tests to run
|
||||
context('Tests to run', () => {
|
||||
//Browse to homepage before each test
|
||||
beforeEach(() => {
|
||||
cy.visit('/')
|
||||
})
|
||||
describe('Init admin', function() {
|
||||
it('Create user and verify success', function() {
|
||||
cy.get('#username')
|
||||
.should('have.value', 'admin')
|
||||
cy.get('#password')
|
||||
.type('portaineriscool')
|
||||
.should('have.value', 'portaineriscool')
|
||||
cy.get('#confirm_password')
|
||||
.type('portaineriscool')
|
||||
.should('have.value', 'portaineriscool')
|
||||
cy.get('[type=submit]').click()
|
||||
cy.url().should('include', '/init/endpoint')
|
||||
})
|
||||
})
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue