Changeset View
Changeset View
Standalone View
Standalone View
cypress/integration/layout.spec.js
/** | /** | ||||
* Copyright (C) 2019 The Software Heritage developers | * Copyright (C) 2019 The Software Heritage developers | ||||
* See the AUTHORS file at the top-level directory of this distribution | * See the AUTHORS file at the top-level directory of this distribution | ||||
* License: GNU Affero General Public License version 3, or any later version | * License: GNU Affero General Public License version 3, or any later version | ||||
* See top-level LICENSE file for more information | * See top-level LICENSE file for more information | ||||
*/ | */ | ||||
const url = '/'; | const url = '/'; | ||||
describe('Test top-bar', function() { | describe('Test top-bar', function() { | ||||
it('should should contain all navigation links', function() { | it('should should contain all navigation links', function() { | ||||
cy.visit(url); | cy.visit(url); | ||||
cy.get('.swh-top-bar > ul > li > a') | cy.get('.swh-top-bar a') | ||||
.should('have.length', 5) | .should('have.length', 5) | ||||
.and('be.visible') | .and('be.visible') | ||||
.and('have.attr', 'href'); | .and('have.attr', 'href'); | ||||
}); | }); | ||||
it('should show donate button on lg screen', function() { | it('should show donate button on lg screen', function() { | ||||
cy.visit(url); | cy.visit(url); | ||||
cy.get('.swh-donate-link') | cy.get('.swh-donate-link') | ||||
Show All 28 Lines |