diff --git a/tests/cypress/integration/ads-txt.test.js b/tests/cypress/integration/ads-txt.test.js index 5edb845..192d81f 100644 --- a/tests/cypress/integration/ads-txt.test.js +++ b/tests/cypress/integration/ads-txt.test.js @@ -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" ); }); @@ -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); });