Uh oh!
There was an error while loading. Please reload this page.
Conversation
PVince81
commented
May 17, 2022
/rebase |
StCyr
commented
May 29, 2022
No idea why drone fails |
PVince81
commented
May 30, 2022
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 ? |
danxuliu
commented
May 30, 2022
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 |
PVince81
commented
May 30, 2022
@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 <cyrpub@bollu.be>
StCyr
commented
May 31, 2022
I think I did good @PVince81 ;-) |
danxuliu
commented
May 31, 2022
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 ;-) |
PVince81
commented
Jun 1, 2022
PVince81
commented
Jun 1, 2022
/backport to stable24 |
Fixes#31952
Signed-off-by: Cyrille Bollu cyrpub@bollu.be