Skip to content

Commit

Permalink
Add log to see noscript contents to investigate frequent failure of '…
Browse files Browse the repository at this point in the history
…should have a noscript img tag with the ati url' (#10860)

* add cypress log to see noscript contents

* added to string

* concat string not corrected

---------

Co-authored-by: Andrew Bennett <[email protected]>
Co-authored-by: Toby Cox <[email protected]>
  • Loading branch information
3 people authored Jun 13, 2023
1 parent 3bc2c96 commit 9dfe8b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/support/commands/analytics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Should be moved into integration/pages/index.js once all pages have ATI
Cypress.Commands.add('hasNoscriptImgAtiUrl', atiUrl => {
cy.get('noscript').then($noscript => {
cy.log(`"Noscript + ${$noscript}`);
});

cy.get('noscript').should(
'contain',
`<img height="1px" width="1px" alt="" style="position:absolute" src="${atiUrl}`,
Expand Down

0 comments on commit 9dfe8b9

Please sign in to comment.