Skip to content

Commit

Permalink
PXBF-1548-update-gtm-e2e-tests: wait 3
Browse files Browse the repository at this point in the history
  • Loading branch information
scottqueen-bixal committed Jul 23, 2024
1 parent f61606b commit 522c1d1
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions benefit-finder/cypress/e2e/storybook/dataLayer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,24 +462,24 @@ describe('Calls to Google Analytics Object', function () {
removeID(ev[0])

expect(ev[0]).to.deep.equal(dataLayerValueAccordionOpen)

cy.wait(wait * 2).then(() => {
pageObjects
.benefitsAccordionLink(enResults.eligible.eligible_benefits[0])
.invoke('removeAttr', 'href')
.click()
.then(() => {
// get all the events in our layer that matches the event value
const ev = [
...window.dataLayer.filter(
x => x?.event === dataLayerValueBenefitLink.event
),
]
removeID(ev[0])

expect(ev[0]).to.deep.equal(dataLayerValueBenefitLink)
})
})
cy.wait(wait * 3)
// cy.wait(wait * 3).then(() => {
pageObjects
.benefitsAccordionLink(enResults.eligible.eligible_benefits[0])
.invoke('removeAttr', 'href')
.click()
.then(() => {
// get all the events in our layer that matches the event value
const ev = [
...window.dataLayer.filter(
x => x?.event === dataLayerValueBenefitLink.event
),
]
removeID(ev[0])

expect(ev[0]).to.deep.equal(dataLayerValueBenefitLink)
})
// })
})
})
})
Expand Down

0 comments on commit 522c1d1

Please sign in to comment.