Skip to content

Commit

Permalink
fix: update sitemap tests with new string (#1853)
Browse files Browse the repository at this point in the history
* fix: update sitemap tests with new string

* fix: remove skip
  • Loading branch information
andrewleith authored May 29, 2024
1 parent 662e17c commit 17d38b6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests_cypress/cypress/e2e/admin/sitemap/sitemap.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const path = "/sitemap";
const sitemap_footer_id = "nav-footer-sitemap";

describe(`Sitemap`, () => {
it("Has link text that corresponds to page titles", () => {
cy.then(Cypress.session.clearCurrentSessionData);
it('Has link text that corresponds to page titles', () => {
cy.visit(path);
cy.get("main").within(() => {
cy.get("a").each((link) => {
Expand Down Expand Up @@ -51,7 +50,7 @@ describe(`Sitemap`, () => {

it("Does NOT display the 'You' group when logged out", () => {
cy.visit(path);
cy.getByTestId("sitemap-group").should("not.have.text", "You");
cy.getByTestId('sitemap-group').should('not.have.text', 'Your GC Notify');

cy.login(Cypress.env("NOTIFY_USER"), Cypress.env("NOTIFY_PASSWORD"));
});
Expand All @@ -60,7 +59,7 @@ describe(`Sitemap`, () => {
cy.login(Cypress.env("NOTIFY_USER"), Cypress.env("NOTIFY_PASSWORD"));
cy.visit(path);

cy.getByTestId("sitemap-group").contains("You");
cy.getByTestId('sitemap-group').contains('Your GC Notify');
});
});

Expand Down

0 comments on commit 17d38b6

Please sign in to comment.