From c0908f2ee4543f668ff3ac0f45a3b790571cc49c Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 8 Dec 2022 13:54:25 +0100 Subject: [PATCH 1/5] convert helper function to native js --- client/tests/jest/helpers.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/tests/jest/helpers.js b/client/tests/jest/helpers.js index 429f3702e9d..94612f2f0cc 100644 --- a/client/tests/jest/helpers.js +++ b/client/tests/jest/helpers.js @@ -146,7 +146,13 @@ export const showAll = (vm) => { // waits n milliseconds and then promise resolves // usage: await wait(500); -export const wait = (n) => timer(n).pipe(take(1)).toPromise(); +export const wait = (n) => { + return new Promise((resolve) => { + setTimeout(() => { + resolve(); + }, n); + }); +}; // Gets a localVue with custom directives export function getLocalVue(instrumentLocalization = false) { From 837fe730b1fa151890da4c8bc81883b1ddfaca08 Mon Sep 17 00:00:00 2001 From: Laila Los <44241786+ElectronicBlueberry@users.noreply.github.com> Date: Thu, 8 Dec 2022 13:55:04 +0100 Subject: [PATCH 2/5] add warning for history import adapt style to other pages --- client/src/components/HistoryImport.vue | 60 +++++++++++++++++++------ 1 file changed, 47 insertions(+), 13 deletions(-) diff --git a/client/src/components/HistoryImport.vue b/client/src/components/HistoryImport.vue index 7ab8df2f8cd..3aed8aa6715 100644 --- a/client/src/components/HistoryImport.vue +++ b/client/src/components/HistoryImport.vue @@ -1,8 +1,7 @@ +