Skip to content

Commit

Permalink
Updated f-test
Browse files Browse the repository at this point in the history
  • Loading branch information
T_S_V committed Sep 30, 2021
1 parent dd612ff commit 9c4e038
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"serve_ci": "http-server",
"test": "karma start ./build-scripts/karma.conf.js",
"testcafe": "concurrently \"http-server --silent\" \"testcafe -c 4 -q chrome testCafe/ --selector-timeout 1500 --reporter minimal\"",
"testcafe_file": "concurrently \"http-server --silent\" \"testcafe chrome testCafe/conditionsAndTriggers/completeTrigger.js --selector-timeout 1500 --reporter minimal\"",
"testcafe_file": "concurrently \"http-server --silent\" \"testcafe chrome testCafe/components/popup.ts --selector-timeout 1500 --reporter minimal\"",
"testcafe_ci": "http-server --silent & testcafe -q chrome:headless testCafe/ --reporter minimal",
"testcafe_sauce": "testcafe \"saucelabs:[email protected]:Windows 10\" testCafe/",
"release": "standard-version --message \"Release: %s [skip ci]\" ",
Expand Down
5 changes: 4 additions & 1 deletion testCafe/components/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ const json = {
};

const disposeSurvey = ClientFunction(framework => {
window["survey"].dispose();
if (framework === "vue") {
window["vueApp"].$destroy();
}
if (framework === "react") {
window["ReactDOM"].unmountComponentAtNode(document.getElementById("surveyElement"));
}
window["survey"].dispose();
});

const getElementClientRect = ClientFunction(selector => {
Expand Down

0 comments on commit 9c4e038

Please sign in to comment.