zhangjingwei 91c5b7933b feat: udpate table header
1. update table header's buttons postion
2. update e2e command to adjust the change

Change-Id: I50379428eaad9ba3b4571987b2478e6f05d25caa
2023-11-17 17:22:35 +08:00

37 lines
1012 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.clickHeaderActionButton(0)
.formAttachFile('template_file', filename)
.clickModalActionSubmitButton();
});
it('successfully delete', () => {
cy.tableSimpleSearchText(zunCapsuleName)
.checkTableFirstRow(zunCapsuleName)
.clickFirstActionButton()
.clickConfirmActionSubmitButton()
.checkEmptyTable();
});
});
});