From 9dfe8b901e4cb32f7865b1552e7f9e29c95c6231 Mon Sep 17 00:00:00 2001 From: LilyL0u <54575620+LilyL0u@users.noreply.github.com> Date: Tue, 13 Jun 2023 15:52:07 +0100 Subject: [PATCH] Add log to see noscript contents to investigate frequent failure of '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 Co-authored-by: Toby Cox --- cypress/support/commands/analytics.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/support/commands/analytics.js b/cypress/support/commands/analytics.js index e2b8de005fc..06878404342 100644 --- a/cypress/support/commands/analytics.js +++ b/cypress/support/commands/analytics.js @@ -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', `