Skip to content

Commit

Permalink
Reverse several assertions to test summary display.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed May 8, 2023
1 parent 550308b commit f85b28e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cypress/integration/ads-txt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ describe("Manage ads.txt", () => {
"contain.text",
"Your Ads.txt contains the following issues"
);
cy.get(".adstxt-settings-form #submit").should("be.disabled");
cy.get(".adstxt-settings-form #submit").should("not.be.disabled");
cy.get("#adstxt-ays-checkbox").click();
cy.get(".adstxt-settings-form #submit").click();
cy.get(".adstxt-saved").should("contain.text", "Ads.txt saved");
cy.get(".notice-error").should(
"contain.text",
"not.contain.text",
"Your Ads.txt contains the following issues"
);
});
Expand Down Expand Up @@ -64,7 +64,7 @@ describe("Manage ads.txt", () => {
cy.get(".restore-revision.button").should("be.disabled");
cy.get(".revisions-previous .button").click();
cy.get(".restore-revision.button").should("be.enabled").click();
cy.get(".notice-success").should("contain.text", "Revision restored");
cy.get(".notice-success").should("not.contain.text", "Revision restored");
cy.request(`/ads.txt`).then((response) => {
expect(response.body).to.contain(incorrectRecord);
});
Expand Down

0 comments on commit f85b28e

Please sign in to comment.