Skip to content
Snippets Groups Projects
Unverified Commit dcb843bf authored by Nicolò Pretto's avatar Nicolò Pretto Committed by GitHub
Browse files

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: default avatarUladzimir Havenchyk <125459446+uladzimirdev@users.noreply.github.com>

---------

Co-authored-by: default avatarUladzimir Havenchyk <125459446+uladzimirdev@users.noreply.github.com>
parent 86ff88a1
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment