-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
More meaningfull message when a public authenticated share's password is wrong or has expired. #32371
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
Conversation
PVince81
left a comment
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.
👍 thanks!
|
/rebase |
41ac50e to
fd7ef2f
Compare
|
No idea why drone fails |
|
hmm, seems the test is expecting a specific message: https://github.com/nextcloud/server/blob/master/tests/acceptance/features/bootstrap/LoginPageContext.php#L69 I'd personally prefer to remove the message matching and rely only on classes. @danxuliu is it common to expect specific messages like this in acceptance test ? |
|
The locators are already separated, the one that fails is in PublicShareContext.php, not in LoginPageContext.php :-) Using specific messages should be fine if they are stable enough, although I would also favour relaying instead on CSS classes and things like that. However, in this case the text needs to be used because the other elements are not specific enough; the message just has a Having said that, rather than adjusting the text in the locator I think it would be OK to add an explicit class to the message (like |
|
@danxuliu thanks a lot for the info @StCyr would you be able to fix the test ?
To run acceptance tests locally: otherwise I can also take over 😄 |
… is wrong or has expired Signed-off-by: Cyrille Bollu <[email protected]>
|
I think I did good @PVince81 ;-) |
Happy to see an xpath expression replaced with a pure CSS one :-) But... :-) Please keep in mind that the equivalent CSS expression would have been And if you already knew all that... then sorry for the noise ;-) |
|
/backport to stable24 |
Fixes #31952
Signed-off-by: Cyrille Bollu [email protected]