Embeds as islands - #3963
Embeds as islands#3963
Embeds as islands#3963Conversation
|
Size Change: -6.4 kB (0%) Total Size: 1.28 MB
ℹ️ View Unchanged
|
| describe('Ad slot Parity between DCR and Frontend for a long read', function () { | ||
| it(`It should check slots for a long article in DCR`, function () { | ||
| runLongReadTestFor(`Article?url=${longReadURL}`); | ||
| }); | ||
|
|
||
| it(`It should check slots for a long article in Frontend`, function () { | ||
| Cypress.config('baseUrl', ''); | ||
| runLongReadTestFor(`${longReadURL}?dcr=false`); | ||
| }); |
There was a problem hiding this comment.
I removed the Frontend test here because we no longer use Frontend!
| cy.scrollTo('bottom'); | ||
| cy.get(`[data-name="merchandising-high"]`).should('have.length', 1); | ||
| // Wait for hydration | ||
| cy.get('gu-island[name=MostViewedFooter]') |
There was a problem hiding this comment.
I don't understand (help!) - how do embeds impact these tests?
There was a problem hiding this comment.
They don't directly. But they started failing and so I fixed them boy scout stylee
| 'Article?url=https://www.theguardian.com/sport/blog/2015/dec/02/the-joy-of-six-sports-radio-documentaries', | ||
| ); | ||
|
|
||
| cy.scrollTo(0, 4500); |
There was a problem hiding this comment.
We're scrolling to a specific pixel position - will this always yield the next expected action (which I'm assuming scrolls something into view that then gets hydrated)?
There was a problem hiding this comment.
This is the expected behaviour, yes. Once our element is in view it becomes hydrated and we can continue the test verifying it does what we expect. The risk is content on this article moves around but that's unlikely (I hope!)
|
🏝️ #3629 |
What does this change?
Embedsas islandsWhy?
Reduced js on the page