Sha256: 230cd3a4752ae53642260eb4008d49dbc4a2d61936a029dff32eb03beb314f89

Contents?: true

Size: 462 Bytes

Versions: 30

Compression:

Stored size: 462 Bytes

Contents

describe("Testing that links exist in the navbar", () => {
  beforeEach(() => {
    cy.visit("/");
  });
  it("navbar links appear on all pages", () => {
    const baseUrl = Cypress.config("baseUrl");

    cy.get('[href="/"]').click();
    cy.url().should("eq", baseUrl + "/");

    cy.get('[href="/posts"]').click();
    cy.url().should("eq", baseUrl + "/posts");

    cy.get('[href="/about"]').click();
    cy.url().should("eq", baseUrl + "/about");
  });
});

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
bridgetown-core-1.1.0.beta1 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.beta3 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.beta2 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.beta1 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.alpha11 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.alpha10 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.alpha9 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.alpha8 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js
bridgetown-core-1.0.0.alpha7 lib/bridgetown-core/configurations/cypress/cypress_dir/integration/navbar.spec.js