461bc9b931
* feat(testing): bump cypress version * feat(testing): bring changes from intial PR + helpers * feat(testing): add kubernetes rbac asserts * feat(testing): cleanup from previous changes Co-authored-by: Simon Meng <simon.meng@portainer.io>
20 lines
702 B
JavaScript
20 lines
702 B
JavaScript
context('Init admin & first endpoint and other required endpoints/groups', () => {
|
|
beforeEach(() => {
|
|
cy.restoreLocalStorage();
|
|
});
|
|
describe('Initialise admin user and endpoint', function () {
|
|
it('Create admin user and verify success', function () {
|
|
cy.initAdmin('admin', 'portainer', false);
|
|
cy.url().should('include', 'init/endpoint');
|
|
cy.saveLocalStorage();
|
|
});
|
|
it('Select local docker endpoint and init', function () {
|
|
cy.initEndpoint('Docker Local', 'Docker');
|
|
cy.url().should('include', 'home');
|
|
});
|
|
it('Add docker swarm endpoint', function () {
|
|
cy.addNewEndpoint('Docker Swarm', 'Agent', 'e2e-portainer:9001');
|
|
});
|
|
});
|
|
});
|