diff --git a/tests/cypress/latest/e2e/unit_tests/machine_registration.spec.ts b/tests/cypress/latest/e2e/unit_tests/machine_registration.spec.ts index b714309ba..ef2b2b6ab 100644 --- a/tests/cypress/latest/e2e/unit_tests/machine_registration.spec.ts +++ b/tests/cypress/latest/e2e/unit_tests/machine_registration.spec.ts @@ -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); diff --git a/tests/cypress/latest/e2e/unit_tests/reset.spec.ts b/tests/cypress/latest/e2e/unit_tests/reset.spec.ts index 9c6ddbf3c..f6577420f 100644 --- a/tests/cypress/latest/e2e/unit_tests/reset.spec.ts +++ b/tests/cypress/latest/e2e/unit_tests/reset.spec.ts @@ -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);