Skip to content

Commit

Permalink
start example vm
Browse files Browse the repository at this point in the history
  • Loading branch information
gouyang committed Nov 13, 2024
1 parent 107afcf commit 98eb24c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cypress/tests/check-tabs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ describe('Check all virtualization pages can be loaded', () => {
cy.contains('Hostname').should('be.visible');
});

it('start example vm', () => {
cy.exec(
`oc patch -n default virtualmachine example --type merge -p '{"spec":{"runStrategy": "Always"}}'`,
);
cy.exec('oc get -n default vm example -o yaml').then((res) => {
cy.task('log', res);
});
});

it('vm tabs are loaded', () => {
tab.navigateToMetrics();
cy.contains('Utilization').should('be.visible');
Expand Down

0 comments on commit 98eb24c

Please sign in to comment.