1. create zun container test 2. start zun container test 3. pause zun container test 4. unpause zun container test 5. reboot zun container test 6. stop zun container test 7. delete zun container test 8. create zun capsule test 9. delete zun capsule test Change-Id: If291bbfd1dde4a73b5e14c171e3bb885d687f480
37 lines
1006 B
JavaScript
37 lines
1006 B
JavaScript
import { onlyOn } from '@cypress/skip-test';
|
|
import { zunCapsuleListUrl } from '../../../support/constants';
|
|
|
|
const zunServiceEnabled = (Cypress.env('extensions') || []).includes('zun');
|
|
|
|
onlyOn(!zunServiceEnabled, () => {
|
|
describe('Skip The zunCapsule Page', () => {
|
|
it('successfully skip', () => {});
|
|
});
|
|
});
|
|
|
|
onlyOn(zunServiceEnabled, () => {
|
|
describe('The zunCpsule Page', () => {
|
|
const listUrl = zunCapsuleListUrl;
|
|
const filename = 'zunCapsuleTemplate.yaml';
|
|
const zunCapsuleName = 'e2e-zun-capsule';
|
|
|
|
beforeEach(() => {
|
|
cy.login(listUrl);
|
|
});
|
|
|
|
it('successfully create', () => {
|
|
cy.clickHeaderButton(1)
|
|
.formAttachFile('template_file', filename)
|
|
.clickModalActionSubmitButton();
|
|
});
|
|
|
|
it('successfully delete', () => {
|
|
cy.tableSimpleSearchText(zunCapsuleName)
|
|
.checkTableFirstRow(zunCapsuleName)
|
|
.clickFirstActionButton()
|
|
.clickConfirmActionSubmitButton()
|
|
.checkEmptyTable();
|
|
});
|
|
});
|
|
});
|