Skip to content

Commit

Permalink
update util
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Nov 30, 2023
1 parent a6e3233 commit 1441022
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const clickEnableRuleSwitch = () => {
cy.get(RULE_SWITCH).click();
cy.wait('@bulk_action').then(({ response }) => {
cy.wrap(response?.statusCode).should('eql', 200);
cy.wrap(response?.body.enabled).should('eql', true);
cy.wrap(response?.body.attributes.results.updated[0].enabled).should('eql', true);
});
};

Expand All @@ -72,7 +72,7 @@ export const clickDisableRuleSwitch = () => {
cy.get(RULE_SWITCH).click();
cy.wait('@bulk_action').then(({ response }) => {
cy.wrap(response?.statusCode).should('eql', 200);
cy.wrap(response?.body.enabled).should('eql', false);
cy.wrap(response?.body.attributes.results.updated[0].enabled).should('eql', true);
});
};

Expand Down

0 comments on commit 1441022

Please sign in to comment.