CI: Browserstack: test only iOS latest and min supported version (iOS 14)

Dropping Safari since Web Secure Sockets do not seem to work with
the 'networkLogs' capability, which is in turn required for the HTTPS
connection to work without insecure certs warnings.
This commit is contained in:
larabr 2024-10-10 14:32:54 +02:00
parent 4ddadd4f53
commit 59c809c943
2 changed files with 14 additions and 7 deletions

View File

@ -110,7 +110,7 @@
"web-streams-polyfill": "^4.0.0"
},
"overrides": {
"@web/dev-server-core": "npm:@openpgp/wtr-dev-server-core@0.7.3-patch.0"
"@web/dev-server-core": "npm:@openpgp/wtr-dev-server-core@0.7.3-patch.1"
},
"repository": {
"type": "git",

View File

@ -18,12 +18,19 @@
timeout: 30000
});
await import('./lib/unittests-bundle.js');
// run the tests, and notify the test runner after finishing
mocha.run(() => {
sessionFinished();
});
// Safari 14 does not support top-level await
import('./lib/unittests-bundle.js')
.then(() => {
// run the tests, and notify the test runner after finishing
mocha.run(() => {
sessionFinished();
});
})
.catch(err => {
console.error(err);
// notify the test runner about errors
sessionFailed(err);
});
} catch (error) {
console.error(error);
// notify the test runner about errors