aboutsummaryrefslogtreecommitdiffstats
path: root/library/Sortable/scripts/test-compat.js
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-08-25 19:13:31 -0700
committernobody <nobody@zotlabs.com>2021-08-25 19:13:31 -0700
commitaa2106f9495bee4dcf0701fbd9fec8de6fa44984 (patch)
treef2e7178f78311069bd54471f6c063c5901d16fb7 /library/Sortable/scripts/test-compat.js
parent73b53675b1a339cfd950845279438e35b4e2dc7c (diff)
parent6261d0826c49ca24df9f694931592fbb9bf60f7e (diff)
downloadvolse-hubzilla-aa2106f9495bee4dcf0701fbd9fec8de6fa44984.tar.gz
volse-hubzilla-aa2106f9495bee4dcf0701fbd9fec8de6fa44984.tar.bz2
volse-hubzilla-aa2106f9495bee4dcf0701fbd9fec8de6fa44984.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'library/Sortable/scripts/test-compat.js')
-rw-r--r--library/Sortable/scripts/test-compat.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/library/Sortable/scripts/test-compat.js b/library/Sortable/scripts/test-compat.js
new file mode 100644
index 000000000..f7408c77f
--- /dev/null
+++ b/library/Sortable/scripts/test-compat.js
@@ -0,0 +1,30 @@
+const createTestCafe = require('testcafe');
+// Testcafe cannot test on IE < 11
+// Testcafe testing on Chrome Android is currently broken (https://github.com/DevExpress/testcafe/issues/3948)
+const browsers = [
+ 'saucelabs:Internet Explorer@11.285:Windows 10',
+ 'saucelabs:MicrosoftEdge@16.16299:Windows 10',
+ 'saucelabs:iPhone XS Simulator@12.2',
+ 'saucelabs:Safari@12.0:macOS 10.14',
+ 'chrome:headless',
+ 'firefox:headless'
+];
+
+let testcafe;
+let runner;
+let failedCount;
+
+createTestCafe(null, 8000, 8001).then((tc) => {
+ testcafe = tc;
+ runner = tc.createRunner();
+ return runner
+ .src('./tests/Sortable.compat.test.js')
+ .browsers(browsers)
+ .run();
+}).then((actualFailedCount) => {
+ // https://testcafe-discuss.devexpress.com/t/why-circleci-marked-build-as-green-even-if-this-build-contain-failed-test/726/2
+ failedCount = actualFailedCount;
+ return testcafe.close();
+}).then(() => process.exit(failedCount));
+
+