-
Notifications
You must be signed in to change notification settings - Fork 158
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
Expiration date related test failing in current nightly build #8042
Comments
might be hard failure the tests are failing in this build too https://drone.owncloud.com/owncloud/web/30215/24/18 |
Build link: https://drone.owncloud.com/owncloud/web/30269/21/18 webUISharingExpirationDate/shareWithExpirationDate.feature:14
webUISharingExpirationDate/shareWithExpirationDate.feature:21 Scenario: share a file with another internal user which should expire after 2 days # features/webUISharingExpirationDate/shareWithExpirationDate.feature:14
✔ Before # setup.js:38
✔ Before # setup.js:42
✔ Before # setup.js:53
✔ Before # setup.js:60
✔ Before # setup.js:71
✔ Before # stepDefinitions/filesContext.js:17
✔ Before # stepDefinitions/generalContext.js:206
✔ Before # stepDefinitions/generalContext.js:244
✔ Before # stepDefinitions/middlewareContext.js:46
✔ Given these users have been created with default attributes and without skeleton files in the server: # stepDefinitions/middlewareContext.js:76
| username |
| Alice |
| Brian |
✔ Given user "Alice" has uploaded file "testavatar.jpg" to "testimage.jpg" in the server # stepDefinitions/middlewareContext.js:66
✔ And user "Alice" has logged in using the webUI # stepDefinitions/loginContext.js:68
✔ When the user shares file "testimage.jpg" with user "Brian Murphy" which expires in "+2" days using the webUI # stepDefinitions/sharingContext.js:860
✖ Then user "Brian" should have received a share with target "testimage.jpg" and expiration date in 2 days in the server # stepDefinitions/middlewareContext.js:66
Error: AssertionError [ERR_ASSERTION]: Expected testimage.jpg: Sat Dec 03 2022 00:00:00 GMT+0000 (Coordinated Universal Time). Found
at /usr/src/app/src/stepDefinitions/sharingContext.js:231:28
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /usr/src/app/src/app.js:61:7
at /var/www/owncloud/web/tests/acceptance/stepDefinitions/middlewareContext.js:38:15
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
✔ After # stepDefinitions/middlewareContext.js:60
✔ After # stepDefinitions/generalContext.js:262
✔ After # stepDefinitions/generalContext.js:231
✔ After # stepDefinitions/generalContext.js:172
✔ After # setup.js:104
✔ After # setup.js:100
✔ After # setup.js:96
✔ After # setup.js:89
✔ After # setup.js:80 Scenario: share a file with another internal user which should expire after 2 days with shares mounted in "Shares" # features/webUISharingExpirationDate/shareWithExpirationDate.feature:21
✔ Before # setup.js:38
✔ Before # setup.js:42
✔ Before # setup.js:53
✔ Before # setup.js:60
✔ Before # setup.js:71
✔ Before # stepDefinitions/filesContext.js:17
✔ Before # stepDefinitions/generalContext.js:206
✔ Before # stepDefinitions/generalContext.js:244
✔ Before # stepDefinitions/middlewareContext.js:46
✔ Given these users have been created with default attributes and without skeleton files in the server: # stepDefinitions/middlewareContext.js:76
| username |
| Alice |
| Brian |
✔ Given the administrator has set the default folder for received shares to "Shares" in the server # stepDefinitions/middlewareContext.js:66
✔ And user "Alice" has uploaded file "testavatar.jpg" to "testimage.jpg" in the server # stepDefinitions/middlewareContext.js:66
✔ And user "Alice" has logged in using the webUI # stepDefinitions/loginContext.js:68
✔ When the user shares file "testimage.jpg" with user "Brian Murphy" which expires in "+2" days using the webUI # stepDefinitions/sharingContext.js:860
✖ Then user "Brian" should have received a share with target "Shares/testimage.jpg" and expiration date in 2 days in the server # stepDefinitions/middlewareContext.js:66
Error: AssertionError [ERR_ASSERTION]: Expected Shares/testimage.jpg: Sat Dec 03 2022 00:00:00 GMT+0000 (Coordinated Universal Time). Found
at /usr/src/app/src/stepDefinitions/sharingContext.js:231:28
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /usr/src/app/src/app.js:61:7
at /var/www/owncloud/web/tests/acceptance/stepDefinitions/middlewareContext.js:38:15
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
✔ After # stepDefinitions/middlewareContext.js:60
✔ After # stepDefinitions/generalContext.js:262
✔ After # stepDefinitions/generalContext.js:231
✔ After # stepDefinitions/generalContext.js:172
✔ After # setup.js:104
✔ After # setup.js:100
✔ After # setup.js:96
✔ After # setup.js:89
✔ After # setup.js:80 |
After a short research: The problem could be that the current year is not selectable. We have a Edit: see nathanreyes/v-calendar#1131 |
@individual-it @phil-davis this lets a lot of tests fail and blocks every PR. can you make this a high priority please? |
@JammingBen is working on it in #8058 |
Hot-patching the |
The tests actually found a bug. There could be a latent bug waiting to be noticed on any day of the year! That's the thing about date-time tests - every day/date is new and is a day/date for which the tests have never been run before! |
Following tests are failing in current nightly in both storages
Build link: https://drone.owncloud.com/owncloud/web/30214/23/18
Both the tests are failing in the same step, as it's the last day of November there might be some problem with the date picker for next month?
The text was updated successfully, but these errors were encountered: