Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

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

Closed

Description

@SwikritiT

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

Activity

  1. self-assigned this
    on Apr 20, 2022
  2. SwikritiT commented on Apr 20, 2022

    @SwikritiT
    ContributorAuthor

    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

  3. SwikritiT commented on Apr 21, 2022

    @SwikritiT
    ContributorAuthor

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

  4. phil-davis commented on Apr 25, 2022

    @phil-davis
    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

  5. SwikritiT commented on Apr 26, 2022

    @SwikritiT
    ContributorAuthor

    The issue behind the failure: #6798

  6. SwikritiT commented on Nov 30, 2022

    @SwikritiT
    ContributorAuthor

    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
  7. SwikritiT commented on Nov 30, 2022

    @SwikritiT
    ContributorAuthor

    TODO:

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

  8. removed their assignment
    on Nov 30, 2022
  9. self-assigned this
    on Nov 30, 2022
  10. SagarGi commented on Nov 30, 2022

    @SagarGi
    Member

    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

  11. SwikritiT commented on Dec 1, 2022

    @SwikritiT
    ContributorAuthor

    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.

  12. SagarGi commented on Dec 19, 2022

    @SagarGi
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions