Skip to content
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

webUITextEditor/textFile.feature:21 failed on nightly #6792

Closed
SwikritiT opened this issue Apr 20, 2022 · 9 comments
Closed

webUITextEditor/textFile.feature:21 failed on nightly #6792

SwikritiT opened this issue Apr 20, 2022 · 9 comments
Assignees
Labels

Comments

@SwikritiT
Copy link
Contributor

SwikritiT commented Apr 20, 2022

Link to build: https://drone.owncloud.com/owncloud/web/24763/54/15

In ocis backend

Scenario: update a markdown file with new content # features/webUITextEditor/textFile.feature:21
   ✔ Before # setup.js:41
   ✔ Before # setup.js:45
   ✔ Before # setup.js:49
   ✔ Before # setup.js:66
   ✔ Before # setup.js:73
   ✔ Before # setup.js:84
   ✔ Before # stepDefinitions/filesContext.js:17
   ✔ Before # stepDefinitions/generalContext.js:199
   ✔ Before # stepDefinitions/generalContext.js:237
   ✔ Before # stepDefinitions/generalContext.js:249
   ✔ Before # stepDefinitions/middlewareContext.js:46
   ✔ Given user "Alice" has been created with default attributes and without skeleton files in the server # stepDefinitions/middlewareContext.js:66
   ✔ And user "Alice" has uploaded file with content "simple markdown file" to "simple.md" in the server # stepDefinitions/middlewareContext.js:66
   ✔ And user "Alice" has logged in using the webUI # stepDefinitions/loginContext.js:64
   ✔ And the user has browsed to the personal page # stepDefinitions/filesContext.js:103
   ✔ Given the user has opened file "simple.md" in the text editor webUI # stepDefinitions/textEditorContext.js:9
   ✔ When the user inputs the content "updated content" in the text editor webUI # stepDefinitions/textEditorContext.js:20
   ✔ And the user saves the file in the text editor webUI # stepDefinitions/textEditorContext.js:28
   ✔ And the user closes the text editor using the webUI # stepDefinitions/textEditorContext.js:32
   ✖ Then as "Alice" the file "simple.md" should have the content "updated content" in the server # stepDefinitions/middlewareContext.js:66
       Error: AssertionError [ERR_ASSERTION]: File should have content "updated content", but found "simple markdown file"
           at fileShouldHaveContent (/usr/src/app/src/stepDefinitions/webdavContext.js:35:17)
           at runMicrotasks (<anonymous>)
           at processTicksAndRejections (node:internal/process/task_queues:96:5)
           at async /usr/src/app/src/app.js:66:7
           at /var/www/owncloud/web/tests/acceptance/stepDefinitions/middlewareContext.js:38:15
           at runMicrotasks (<anonymous>)
           at processTicksAndRejections (internal/process/task_queues.js:95:5)
   ✔ After # stepDefinitions/middlewareContext.js:60
   ✔ After # stepDefinitions/generalContext.js:255
   ✔ After # stepDefinitions/generalContext.js:224
   ✔ After # stepDefinitions/generalContext.js:165
   ✔ After # setup.js:117
   ✔ After # setup.js:113
   ✔ After # setup.js:109
   ✔ After # setup.js:102
   ✔ After # setup.js:93
@SwikritiT SwikritiT self-assigned this Apr 20, 2022
@SwikritiT
Copy link
Contributor Author

This is because sometimes the textarea gets disabled and the text isn't updated. Couldn't reproduce it manually but on multiple runs inside the test environment.
cannotWrite

@SwikritiT
Copy link
Contributor Author

Tried to add some pause and reload the page didn't work

@phil-davis
Copy link
Contributor

https://drone.owncloud.com/owncloud/ocis/10852/50/9

runsh: Total unexpected failed scenarios throughout the test run:
webUITextEditor/textFile.feature:29

looks like a similar problem

@SwikritiT
Copy link
Contributor Author

The issue behind the failure: #6798

@SwikritiT
Copy link
Contributor Author

A similar failure in the recent nightly build as well https://drone.owncloud.com/owncloud/web/30214/19/18

 Scenario: append new content in a markdown file # features/webUITextEditor/textFile.feature:29
   ✔ 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/generalContext.js:256
   ✔ Before # stepDefinitions/middlewareContext.js:46
   ✔ Given user "Alice" has been created with default attributes and without skeleton files in the server # stepDefinitions/middlewareContext.js:66
   ✔ And user "Alice" has uploaded file with content "simple markdown file" to "simple.md" in the server # stepDefinitions/middlewareContext.js:66
   ✔ And user "Alice" has logged in using the webUI # stepDefinitions/loginContext.js:68
   ✔ And the user has browsed to the personal page # stepDefinitions/filesContext.js:103
   ✔ Given the user has opened file "simple.md" in the text editor webUI # stepDefinitions/textEditorContext.js:9
   ✔ When the user appends the content " new content added" in the text editor webUI # stepDefinitions/textEditorContext.js:24
   ✔ And the user saves the file in the text editor webUI # stepDefinitions/textEditorContext.js:28
   ✔ And the user closes the text editor using the webUI # stepDefinitions/textEditorContext.js:32
   ✖ Then as "Alice" the file "simple.md" should have the content "simple markdown file new content added" in the server # stepDefinitions/middlewareContext.js:66
       Error: AssertionError [ERR_ASSERTION]: File should have content "simple markdown file new content added", but found "simple markdown file"
           at fileShouldHaveContent (/usr/src/app/src/stepDefinitions/webdavContext.js:35:17)
           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 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

@SwikritiT SwikritiT reopened this Nov 30, 2022
@SwikritiT
Copy link
Contributor Author

SwikritiT commented Nov 30, 2022

TODO:

Note the above issue is for OCIS storage and the test failure in nightly is in oc10

@SagarGi
Copy link
Member

SagarGi commented Nov 30, 2022

TODO:

Note the above issue is for OCIS storage and the test failure in nightly is in oc10

Pass on locally and the same issue is hard to reproduce. I have debugged it in CI with multiple scenarios #8044

@SwikritiT
Copy link
Contributor Author

SwikritiT commented Dec 1, 2022

TODO:

Note the above issue is for OCIS storage and the test failure in nightly is in oc10

Pass on locally and the same issue is hard to reproduce. I have debugged it in CI with multiple scenarios #8044

Let's wait a few days, and see how much the issue re-occurs.

@SagarGi
Copy link
Member

SagarGi commented Dec 19, 2022

This issue is not seen in recent nightly builds. So this can be closed for now.

@SagarGi SagarGi closed this as completed Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants