-
Notifications
You must be signed in to change notification settings - Fork 156
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
[full-ci] Warn when using incompatible browser #7942
Conversation
3b5d776
to
c366d1a
Compare
Results for oCISSharingPublic1 https://drone.owncloud.com/owncloud/web/30321/67/1 |
@diocas why not reuse
|
As far as I understood from @elizavetaRa , who is handling our user tickets, they never reach that point.. But, if we do, yes, we could re-use that (but I would suggest maybe to still use the regex) The error is not translated, just like the generic error is not translated. Not very user friendly, but not sure we want to spend much effort now in doing that. |
@pascalwengerter Our users with older browsers see either white/black screen or the "Oops, something went wrong" error, which means runtimeFailure. I could reproduce first on Edge 85 and second on Firefox 75 (Ubuntu), screenshot attached Regarding translations, the "Oops, something went wrong" is also not translated in my understanding, so why not show a more meaningful error if we detect an unsupported browser? This way we warn the user but still give the possibility to try it out (and optionally a link to list of supported browsers) |
7b758b6
to
e3bd562
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.
Really nice, thank you for the contribution! 🤩
@diocas could you please rebase to current master? Or should I take over myself? |
e3bd562
to
1909800
Compare
Done |
This PR catches the "old browser" scenario way earlier and is based on our project configuration. I'd even go a step further and remove the IE deprecation warning from the Application layout, in favour of this solution. |
I've added |
1909800
to
4bc0b8e
Compare
Looks like there were only datepicker-related issues in tests, which had nothing to do with this PR (see #8058 ) - could you rebase to most current master again? Sorry 🙈 |
4bc0b8e
to
b4bae73
Compare
Looks like it stopped in smth unrelated again, no? |
Yes, a flaky unit test -.- I restarted the CI, that's sufficient in this case. |
I looked into the failing acceptance tests. A test selector for the diff --git a/tests/acceptance/pageObjects/publicLinkPasswordPage.js b/tests/acceptance/pageObjects/publicLinkPasswordPage.js
index f9280ca05..bd3f21132 100644
--- a/tests/acceptance/pageObjects/publicLinkPasswordPage.js
+++ b/tests/acceptance/pageObjects/publicLinkPasswordPage.js
@@ -54,14 +54,15 @@ module.exports = {
selector: '.oc-login-authorize-button'
},
resourceProtectedText: {
- selector: '//*[@class="oc-card-header"]',
+ selector: '//*[contains(@class, "oc-link-resolve")]//*[@class="oc-card-header"]',
locateStrategy: 'xpath'
},
linkResolveErrorTitle: {
selector: '.oc-link-resolve-error-title'
},
publicLinkPasswordSection: {
- selector: '//*[@class="oc-card-header"]//*[text()="This resource is password-protected"]',
+ selector:
+ '//*[contains(@class, "oc-link-resolve")]//*[@class="oc-card-header"]//*[text()="This resource is password-protected"]',
locateStrategy: 'xpath'
}
} (reason why it failed: |
b4bae73
to
4673c61
Compare
|
Kudos, SonarCloud Quality Gate passed! |
We had many users complaining that things were not working and there was no clear reason why... So we decided to warn them.
There's a new compilation env variable to set a link to documentation, in case you have it.
Also, in case the browser still somewhat supports most of the code, users can still force launch it to check it.
I've opened the PR to see your comments, suggestions and interest, but @elizavetaRa is still going to confirm with our users that it displays the error properly (e.g maybe the css will not be well formatted or the regex won't match?)
If there are necessary changes, we'll update the PR.