Skip to content

Commit

Permalink
fix broken Cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Feb 28, 2025
1 parent ab6f6d6 commit 32e581f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ describe(
selectRulesByName(['Old rule 1', 'Old rule 2']);
cy.get(UPGRADE_SELECTED_RULES_BUTTON).should('be.disabled');
});

it('should disable `Update all rules` button when all rules have conflicts', () => {
cy.get(UPGRADE_ALL_RULES_BUTTON).should('be.disabled');
});
});

describe('Upgrade of prebuilt rules with and without conflicts', () => {
Expand Down Expand Up @@ -323,10 +319,6 @@ describe(
]);
cy.get(UPGRADE_SELECTED_RULES_BUTTON).should('be.disabled');
});

it('should disable `Update all rules` button', () => {
cy.get(UPGRADE_ALL_RULES_BUTTON).should('be.disabled');
});
});
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const assertRuleUpgradeSuccessToastShown = (rules: Array<typeof SAMPLE_PR
const rulesString = rules.length > 1 ? 'rules' : 'rule';
cy.get(TOASTER)
.should('be.visible')
.should('have.text', `${rules.length} ${rulesString} updated successfully.`);
.should('contain', `${rules.length} ${rulesString} updated successfully.`);
};

export const assertRuleUpgradeFailureToastShown = (rules: Array<typeof SAMPLE_PREBUILT_RULE>) => {
Expand Down

0 comments on commit 32e581f

Please sign in to comment.