Skip to content

Commit

Permalink
fix: fix create & nav
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Dec 5, 2024
1 parent 7ad557b commit a9399c6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ context('Accessibility test Custom Resources', () => {

cy.navigateTo('Configuration', 'Custom Resource Definitions');

cy.openCreate().click();
cy.openCreate();

cy.wrap(loadFile(FILE_NAME)).then(CRD_CONFIG => {
const CRD = JSON.stringify(CRD_CONFIG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ context('Test Custom Resources', () => {

cy.navigateTo('Configuration', 'Custom Resource Definitions');

cy.openCreate().click();
cy.openCreate();

cy.wrap(loadFile(FILE_NAME)).then(CRD_CONFIG => {
const CRD = JSON.stringify(CRD_CONFIG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ context('Test navigation features', () => {

cy.wait(1000);

cy.contains('div', 'cronjob-controller (SA)')
.find('ui5-link') // link itself
cy.contains('ui5-text', 'system:controller:cronjob-controller').click();

cy.getMidColumn()
.contains('ui5-Panel', 'Subjects')
.contains('ui5-link', 'cronjob-controller')
.click();

cy.contains('disabled').should('exist');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ context('Test Persistent Volumes', () => {
it('Create PV with NFS', () => {
cy.navigateTo('Storage', 'Persistent Volumes');

cy.openCreate().click();
cy.openCreate();

cy.wrap(loadPV(PV_NFS_NAME, 'test-persistent-volume-NFS.yaml')).then(
PV_CONFIG => {
Expand Down Expand Up @@ -83,7 +83,7 @@ context('Test Persistent Volumes', () => {
});

it('Create PV with CSI', () => {
cy.openCreate().click();
cy.openCreate();

cy.wrap(loadPV(PV_CSI_NAME, 'test-persistent-volume-CSI.yaml')).then(
PV_CONFIG => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ context('Test Storage Classes', () => {
it('Create Storage Class', () => {
cy.navigateTo('Storage', 'Storage Classes');

cy.openCreate().click();
cy.openCreate();

cy.wrap(loadSC(Cypress.env('STORAGE_CLASS_NAME'))).then(SC_CONFIG => {
const SC = JSON.stringify(SC_CONFIG);
Expand Down

0 comments on commit a9399c6

Please sign in to comment.