From a42649ce41b26ad73566781af79c978033a90f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Doreau?= Date: Fri, 14 May 2021 10:51:56 +0200 Subject: [PATCH] fix(app): fix techdocs initial scroll e2e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Doreau --- packages/app/cypress/integration/plugins/techdocs.spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/app/cypress/integration/plugins/techdocs.spec.js b/packages/app/cypress/integration/plugins/techdocs.spec.js index e22a22bc7b..9191416cc8 100644 --- a/packages/app/cypress/integration/plugins/techdocs.spec.js +++ b/packages/app/cypress/integration/plugins/techdocs.spec.js @@ -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 => {