mirror of
https://github.com/portainer/portainer.git
synced 2025-08-01 03:45:22 +02:00
* feat(project): refactor e2e testing * feat(project): remove example text * feat(project): add missing newlines Co-authored-by: owner <owner@pop-os.localdomain>
31 lines
739 B
JavaScript
31 lines
739 B
JavaScript
context('Testing of minimum viable functionality against docker swarm', () => {
|
|
before(() => {
|
|
cy.visit('/');
|
|
});
|
|
|
|
after(() => {});
|
|
|
|
describe('Manipulating resources as admin', function () {
|
|
beforeEach(() => {
|
|
cy.visit('/');
|
|
cy.auth('frontend', 'admin', 'portainer');
|
|
});
|
|
|
|
afterEach(() => {
|
|
// Clean Tokens
|
|
cy.clearUserTokens();
|
|
});
|
|
|
|
it('Login and create resources as admin', function () {
|
|
cy.visit('/');
|
|
cy.selectEndpoint('swarm');
|
|
cy.modifyResources('frontend', 'create');
|
|
});
|
|
|
|
it('Login and delete resources as admin', function () {
|
|
cy.visit('/');
|
|
cy.selectEndpoint('swarm');
|
|
cy.modifyResources('frontend', 'delete');
|
|
});
|
|
});
|
|
});
|