Skip to content

Commit

Permalink
ci/ui: test reset enabled in machine inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
juadk committed Sep 8, 2023
1 parent 3f52fd9 commit cf4b87e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ describe('Machine registration testing', () => {
true,
//checkIsoBuilding
true,
'custom_cloud-config_with_reset.yaml',
utils.isK8sVersion('k3s') ? 'custom_cloud-config_with_reset.yaml' : 'custom_cloud-config.yaml',
//checkDefaultCloudConfig
false);
cy.checkMachInvLabel('machine-registration', 'myInvLabel1', 'myInvLabelValue1', false);
Expand Down
16 changes: 15 additions & 1 deletion tests/cypress/latest/e2e/unit_tests/reset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,21 @@ filterTests(['main'], () => {
cypressLib.burgerMenuOpenIfClosed();
cypressLib.accesMenu('OS Management');
});


if (utils.isK8sVersion('rke')) {
it('Enable reset in machine inventory', () => {
cy.clickNavMenu(["Inventory of Machines"]);
cy.getBySel('sortable-table-0-action-button').click();
cy.contains('Edit YAML').click();
cy.contains('annotations').as('anno')
cy.get('@anno').click(0,0)
cy.get('@anno').type('{end}{enter} elemental.cattle.io/resettable: \'true\'');
cy.getBySel('action-button-async-button')
.contains('Save')
.click();
});
}

qase(2,
it('Reset node by deleting the cluster', () => {
cy.viewport(1920, 1080);
Expand Down

0 comments on commit cf4b87e

Please sign in to comment.