Skip to content

Commit 8c73567

Browse files
committed
fix tests/comments
1 parent 593682e commit 8c73567

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

__tests__/components/Card.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import Card from '../../components/Card'
55

66
expect.extend(toHaveNoViolations)
77

8-
describe.skip('Card', () => {
8+
// TODO: Fix test
9+
describe('Card', () => {
910
it('renders Card', () => {
1011
render(
1112
<Card

cypress/e2e/ContactUs.cy.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/// <reference types="cypress" />
22

3-
const runTest = false
4-
if (runTest) {
53
describe('Validate Contact Us Landing page', () => {
64
beforeEach(() => {
75
cy.intercept({
@@ -27,11 +25,11 @@ describe('Validate Contact Us Landing page', () => {
2725

2826
it('Validate the links on Contact us page', () => {
2927
cy.get('[data-cy = "contact-task-list"]')
30-
.find('a')
31-
.should('be.visible')
32-
.and('have.length', '5')
33-
.and('not.have.length', 0)
34-
.and('not.have.attr', 'href', '#undefined')
28+
.find('a')
29+
.should('be.visible')
30+
.and('have.length', '6')
31+
.and('not.have.length', 0)
32+
.and('not.have.attr', 'href', '#undefined')
3533
})
3634

3735
it('validate the breadcrumbs are present on Contact us page EN and FR', () => {
@@ -50,7 +48,7 @@ describe('Validate Contact Us Landing page', () => {
5048
cy.get('[data-testid="menuButton"]').click()
5149
cy.get(':nth-child(4) > .border-t-2').click()
5250
cy.location('pathname', { timeout: 10000 })
53-
.should('equal', '/en/contact-us')
51+
.should('equal', '/en/contact-us')
5452
})
5553

5654
it('Validate there is exactly one copy of the AA script and it was only loaded once', () => {
@@ -59,4 +57,3 @@ describe('Validate Contact Us Landing page', () => {
5957
cy.get('@analyticsScript').its('length').should('eq', 1)
6058
})
6159
})
62-
}

0 commit comments

Comments
 (0)