-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
Minimum browser requirements for cht-core 4 #8159
Comments
I think failing loudly is a good idea. If we know the app will not work (as in the linked issue) then the user should not be able to log in, or if they are logged in, the app should be locked. The idea would be to make it so obvious to whoever is setting up the device that it's caught early before the phone is given to the CHW. We could also have a warning stage for if the browser is quite old but technically still supported, but I doubt this will prompt any action from the users so it's likely just nagging. This would be an interesting experiment to run to see how often this prompts user action, but probably outside the scope of this issue. The reason this isn't a quick win is because currently the testing is all done on recent browsers - this is a technical limitation of our test setup not by design. So if we officially support Chrome X then we need to fully test Chrome X before release. This is a good thing, but it's worth highlighting the current state. Steps I can see for the implementation of this...
|
Yes please! This will really maintain clarity in our upgrade process. |
In #8456 it became clear that we need to run browser checking code before attempting to load the app as the Android app bypasses the login page altogether and if the main bundle crashes on an older browser the user is stuck with no useful info. |
…ts (#8663) * Fix standard config specs to run on chrome 90 * Add changes after npm install * Revert unwanted changes * Add suggested feedback * Fix chrome_version env variable setup * Add chrome version to test name * Update binary not to use my local chrome * install chromedriver 90 * Revert deletion of chromedriver 90 dependency * Delete chromedriver dependency * Fix spaces in run * Change where to set CHROME_VERSION env * Add no-sandbox to prevent session not created chromedriver error * Revert change in the test names * Merge Install Chrome and Chromedriver version 90 in one step Co-authored-by: Gareth Bowen <gareth@medic.org> * Change name in step and, simplify chrome args * Fix name calculation * Fix eslint * Fix >> character * Add await browser.url('/'); before login * Add await browser.url('/'); before logout * Change roleField selector to work also on Chrome90 * Fix eslint * Use browserVersion to choose the method to get text from a span element * Fix eslint * Delete browser.url('/'); after logout * Delete no-sandbox option * Delete unnecessary waits * expose a common function to validate if the browser version is the minimum * Fix eslint * Create standard enketo wdio page to have common enketo forms definitions * Fix eslint * Delete BrowserVersion as is not neccesary if setting binary * Set undefined browserVersion when is not minimum * Delete chromedriver dependencies * Add chromedriver binary path * Add disable-dev-shm-usage arg * Fix eslint * Fix misspelled * Check chromedriver version * Get chromedriver version * Use node modules chromedriver * Fix driver version output * Add no-sandbox to make the test pass, and print browser and driver versions * Fix eslint * Add no-sandbox argument only when running tests with chrome90 * Implement feedback --------- Co-authored-by: Maria Lorena Rodriguez Viruel <marialorenarodriguezviruel@MacBook-Pro-de-Maria.local> Co-authored-by: Gareth Bowen <gareth@medic.org>
@jkuester I'm using this issue as a placeholder. |
I'm closing this issue because I've split the minimum browser requirements work into smaller, more focused issues. Each issue will address a specific suite to ensure better tracking. |
We should fail loudly if the minimum browser requirement is not met. In the same way we are clear on the minimum android os version, we should be clear on the minimum chrome version (and other requirements).
Originally posted by @derickl in #8143 (comment)
The text was updated successfully, but these errors were encountered: