Skip to content
Snippets Groups Projects
Commit 9dc393c5 authored by Atte Keinänen's avatar Atte Keinänen
Browse files

Don't run multiple API calls same time in E2E [ci e2e]

parent 4b07a85b
No related branches found
No related tags found
No related merge requests found
......@@ -106,22 +106,27 @@ describeE2E("parameters", () => {
// public url
await d.get(publicUrl);
await d::checkScalar(COUNT_ALL);
await d.sleep(1000); // making sure that the previous api call has finished
// manually click parameter
await d::setCategoryParameter("Doohickey");
await d::checkScalar(COUNT_DOOHICKEY);
await d.sleep(1000);
// set parameter via url
await d.get(publicUrl + "?category=Gadget");
await d::checkScalar(COUNT_GADGET);
await d.sleep(1000);
// embed
await d.get(embedUrl);
await d::checkScalar(COUNT_ALL);
await d.sleep(1000);
// manually click parameter
await d::setCategoryParameter("Doohickey");
await d::checkScalar(COUNT_DOOHICKEY);
await d.sleep(1000);
// set parameter via url
await d.get(embedUrl + "?category=Gadget");
......
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