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>
32 lines
744 B
JavaScript
32 lines
744 B
JavaScript
context('Testing of minimum viable functionality against docker standalone', () => {
|
|
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('local');
|
|
cy.modifyResources('frontend', 'create');
|
|
});
|
|
|
|
it('Login and delete resources as admin', function () {
|
|
cy.visit('/');
|
|
cy.selectEndpoint('local');
|
|
cy.modifyResources('frontend', 'delete');
|
|
});
|
|
});
|
|
});
|