Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hana-akamai committed Dec 5, 2024
1 parent 362da35 commit 0a7eec4
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions packages/manager/cypress/e2e/core/kubernetes/lke-update.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ describe('LKE cluster updates', () => {
);
mockGetKubernetesVersions().as('getVersions');
mockUpdateNodePool(mockCluster.id, mockNodePoolWithTags).as('addTag');
mockUpdateNodePool(mockCluster.id, mockNodePoolNoTags).as('deleteTag');
mockGetDashboardUrl(mockCluster.id);
mockGetApiEndpoints(mockCluster.id);

Expand All @@ -908,20 +907,23 @@ describe('LKE cluster updates', () => {

cy.wait(['@addTag', '@getNodePoolsWithTags']);

// // Delete the newly added node pool tag.
// cy.get(`[data-qa-tag="${mockNodePoolWithTags.tags[0]}"]`)
// .should('be.visible')
// .within(() => {
// ui.button
// .findByTitle('Delete tag')
// .should('be.visible')
// .should('be.enabled')
// .click();
// });

// cy.wait(['@deleteTag', '@getNodePoolsNoTags']);
// cy.get(`[data-qa-tag="${mockNodePoolWithTags.tags[0]}"]`)
// .should('not.exist')
mockUpdateNodePool(mockCluster.id, mockNodePoolNoTags).as('deleteTag');
mockGetClusterPools(mockCluster.id, [mockNodePoolNoTags]).as(
'getNodePoolsNoTags'
);

// Delete the newly added node pool tag.
cy.get(`[data-qa-tag="${mockNodePoolWithTags.tags[0]}"]`)
.should('be.visible')
.within(() => {
cy.get('[data-qa-delete-tag="true"]').should('be.visible').click();
});

cy.wait(['@deleteTag', '@getNodePoolsNoTags']);

cy.get(`[data-qa-tag="${mockNodePoolWithTags.tags[0]}"]`).should(
'not.exist'
);
});

describe('LKE cluster updates for DC-specific prices', () => {
Expand Down

0 comments on commit 0a7eec4

Please sign in to comment.