fix(app): fix techdocs initial scroll e2e

Signed-off-by: Rémi Doreau <remi.d45@gmail.com>
This commit is contained in:
Rémi Doreau
2021-05-14 10:51:56 +02:00
parent 398d3adb79
commit a42649ce41
@@ -94,8 +94,12 @@ describe('TechDocs', () => {
'/docs/default/Component/backstage/overview/roadmap/#future-work',
);
// This is used to test the post-render behavior of the techdocs Reader
// eslint-disable-next-line cypress/no-unnecessary-waiting
cy.wait(500);
return cy.getTechDocsShadowRoot().within(() => {
return cy.get('#future-work').then($el => {
cy.get('#future-work').then($el => {
cy.window()
.its('scrollY')
.should($scrollY => {