-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(web): restore testing against legacy devices via BrowserStack #11845
base: master
Are you sure you want to change the base?
Conversation
User Test ResultsTest specification and instructions ERROR: user tests have not yet been defined Test Artifacts
|
@@ -9,6 +9,7 @@ | |||
"@typescript-eslint/eslint-plugin": "^5.59.1", | |||
"@web/dev-server-esbuild": "^1.0.2", | |||
"@web/dev-server-import-maps": "^0.2.0", | |||
"@web/dev-server-legacy": "^2.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems small on the surface, but comes with a very significant dependency cost - just look at the "lines changed" count for package-lock.json!
// you can get the browser capabilities from the browserstack website | ||
browserstackLauncher({ | ||
capabilities: { | ||
// Requires the dev-server-legacy plugin to operate properly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, for this older version of Chrome. Supposedly, version 63 or 64 would allow us to drop it, but I'd want to check that experimentally first.
…standard test-runner config
Note that they aren't yet linked to any build.sh actions or commands yet, though.
79fd953
to
45b1f73
Compare
Test (Keyman - iOS) build failure cause:
|
This working PR seeks to address #11501.
My progress has been impeded somewhat due to issues I documented in modernweb-dev/web#2756. There are some limitations I'd rather not have, but at least things are far enough along to unblock progress.
Some neat things: we actually get more data about the test runs within the BrowserStack dashboard now, along with greater control of test-run labeling. A rough glimpse of that:
As our test runs do have separate test sets for specific modules, we can label which module each run is for while keeping them all associated within the same overall build version label.
How about some neat network logs? This way, we can see what sort of load times different parts of the test suites are costing to have better data for setting timeouts and/or determining sources of related instability.
Even the "Text Logs" provide us a little more information than they used to.
Console logs? Sure, why not?
Messages were temporarily added while I was analyzing the issues that led to [@web/test-runner-browserstack] + [@web/dev-server-legacy]: issues when using BrowserStack launcher for targeting certain older devices modernweb-dev/web#2756.
Note that a new package had to be added in order to support the older version of Chrome used here as a test target -
@web/dev-server-legacy
. It seems simple on the surface, but its dependencies are the source of the monstrous set of changes to package-lock.json.