From dcb843bf9a87db8f649a625354e55b07721d0148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Pretto?= <info@npretto.com> Date: Tue, 15 Oct 2024 10:14:00 +0200 Subject: [PATCH] fix flaky test on embed share behaviour snowplow events (#48665) * increase time tolerance to make tests less flaky on ci when CPU is under heavy load * Update e2e/test/scenarios/sharing/public-sharing-embed-button-behavior.cy.spec.js Co-authored-by: Uladzimir Havenchyk <125459446+uladzimirdev@users.noreply.github.com> --------- Co-authored-by: Uladzimir Havenchyk <125459446+uladzimirdev@users.noreply.github.com> --- .../sharing/public-sharing-embed-button-behavior.cy.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/test/scenarios/sharing/public-sharing-embed-button-behavior.cy.spec.js b/e2e/test/scenarios/sharing/public-sharing-embed-button-behavior.cy.spec.js index 282f1693702..63e82880fb9 100644 --- a/e2e/test/scenarios/sharing/public-sharing-embed-button-behavior.cy.spec.js +++ b/e2e/test/scenarios/sharing/public-sharing-embed-button-behavior.cy.spec.js @@ -696,7 +696,7 @@ describe("#39152 sharing an unsaved question", () => { new_embed: true, time_since_creation: closeTo( toSecond(Date.now() - this.timeAfterResourceCreation), - 1, + 15, ), time_since_initial_publication: null, params: { @@ -732,8 +732,8 @@ describe("#39152 sharing an unsaved question", () => { event: "static_embed_published", artifact: resource, new_embed: false, - time_since_creation: closeTo(toSecond(HOUR), 10), - time_since_initial_publication: closeTo(toSecond(HOUR), 10), + time_since_creation: closeTo(toSecond(HOUR), 15), + time_since_initial_publication: closeTo(toSecond(HOUR), 15), params: { disabled: 1, locked: 1, -- GitLab