1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-01 03:45:22 +02:00
portainer/test/e2e/cypress/integration/ci_basic_tests/init.spec.js
itsconquest d4c4c4e895
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>
2020-09-23 12:31:19 +12:00

19 lines
621 B
JavaScript

context('Init admin user test', () => {
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');
});
it('Add docker swarm endpoint', function () {
cy.addNewEndpoint('swarm', 'Agent', 'e2e-portainer:9001');
});
});
});