-
Notifications
You must be signed in to change notification settings - Fork 27
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
Test in all supported browsers #6832
Conversation
6c65d35
to
bc98339
Compare
3/18 Files got Bigger 🚨: Details
15/18 Files stayed the same size 🤷: Details
Created by ember-asset-size-action |
e2ec4c1
to
35a37bd
Compare
35a37bd
to
f9ffa60
Compare
667d58f
to
13a575c
Compare
e83b814
to
e86ab8d
Compare
e86ab8d
to
67f8cba
Compare
67f8cba
to
9898a2e
Compare
5860891
to
839be21
Compare
Using the browserstack API along with installing and running firefox ESR versions to test all of our supported browser versions so we can ensure everything works for all of our users.
We needed to specify the major versions in our targets in order to get the safari browsers we actually intended to support. While ember goes back even further we can safely cap our support at the last 3 major versions to cover the ios and OSX releases with security updates.
In order to cover some mobile devices and get the versions we really thought we were already supporting.
These are the changes that have worked in common.
This ensures we don't get stuck in a weird time, safari especially seems to need this.
We have this in our other chart tests, we need to wait for loading all the data and rendering the chart otherwise this test is flaky.
I also consolidated all of these common arguments into a single place to make it easier to edit them in the future.
With the release of Safari 16 we're no longer supporting Safari 13 and can drop it from our tests. Firefox ESR 91 is now EOL and 102 is the only supported ESR version so we can update our tests to stop checking ESR 91. Edge 104 is the currently active edge version.
We hide these columns from small screens to these are not visible on some test devices, however the HTML is present and we can check for that.
These are not real dates in our API and we mess with them in the serializer which can make them flaky across timezones. Instead treat them as date strings.
Updated to match our current supported browsers.
This is required for browserstack as the ember-cli-browserstack addon doesn't quite parse strings correctly. Fix is merged upstream, but unreleased.
839be21
to
075483c
Compare
These are not real dates and using a JS Date makes testing across timezones and browsers very difficult. Sending a string is what our API does, so it works well this way.
075483c
to
f15c7e1
Compare
We were missing some features of these when they display on a mobile device with a smaller screen.
Otherwise we check the entire page which breaks in smaller screens.
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.
minor request on code docs, otherwise this looks good to me.
The existing method doesn't work in Safari in contexts that aren't secure. This includes our browser tests. Should we generate tokens in insecure contexts? I'm not sure, but we have always allowed Ilios to run without SSL, it's not a great idea, but we haven't, so far, been in the business of requiring a secure connection. This generation of an ICS token doesn't, in my mind, provide less security. In an insecure context we'd already be passing this data around anyway. The method itself is secure enough that the resulting token should not be guessable, which is all that is required.
This one breaks randomly, it may be a delay in updating the property on the model so I'm gonna try this and see if adding a bit of delay helps.
616b1a4
to
92d360d
Compare
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.
LGTM
Using the browserstack API along with installing and running firefox ESR
versions to test all of our supported browser versions so we can ensure
everything works for all of our users.
Fixes ilios/ilios#4273
So.....
Requires ilios/common#3033