11/// <reference types="cypress" />
22
3- const runTest = false
4- if ( runTest ) {
53describe ( '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