mirror of
https://github.com/portainer/portainer.git
synced 2025-08-01 20:05:23 +02:00
feat(project): refactor e2e testing (#4341)
* feat(project): refactor e2e testing * feat(project): remove example text * feat(project): add missing newlines Co-authored-by: owner <owner@pop-os.localdomain>
This commit is contained in:
parent
466bd24648
commit
d4c4c4e895
18 changed files with 1442 additions and 130 deletions
16
test/e2e/cypress/integration/init.spec.js
Normal file
16
test/e2e/cypress/integration/init.spec.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
context('Init admin & local docker endpoint', () => {
|
||||
beforeEach(() => {
|
||||
cy.restoreLocalStorage();
|
||||
});
|
||||
describe('Initialise admin user and endpoint', function () {
|
||||
it('Create admin user and verify success', function () {
|
||||
cy.initAdmin('admin', 'portainer');
|
||||
cy.url().should('include', 'init/endpoint');
|
||||
cy.saveLocalStorage();
|
||||
});
|
||||
it('Select local docker endpoint and init', function () {
|
||||
cy.initEndpoint();
|
||||
cy.url().should('include', 'home');
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue