Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 0feb868

Browse files
author
Pablo Huerta
committed
title and paragraph home test fix
1 parent 99c9020 commit 0feb868

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cypress/integration/app-about-team.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ describe('About page team', function () {
88

99
describe('About Hero', () => {
1010
it('The about page title and paragraph text display', () => {
11-
cy.get('h1').contains('We Are Passionate About Technology and Design');
12-
cy.get('.hero > .col-12 > .about-text').contains('We believe that your success is our success');
11+
cy.get('[data-cy=title-hero]').contains('We Are Passionate About Technology and Design');
12+
cy.get('.about-text').contains('We believe that your success is our success');
1313
});
1414

1515
it('The meet our team button jumps the user to the "Meet Our Team" section', () => {

src/pages/app-about/app-about.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class AppAbout {
2525
<div class="container-fluid">
2626
<div class="row align-items-center hero">
2727
<div class="col-12 col-md-11 offset-md-1">
28-
<h1>
28+
<h1 data-cy='title-hero'>
2929
<app-translate class="d-none d-md-block" keyword="about.header.title" />
3030
<app-translate class="d-block d-md-none" keyword="about.header.titleSmall" />
3131
</h1>

0 commit comments

Comments
 (0)