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.

UI tests emit messages that look like errors #4115

Closed

Description

@phil-davis

e.g. https://github.com/owncloud/phoenix/blob/abce2ae2384c814c74de4efb65adc2c92244e08d/tests/acceptance/stepDefinitions/filesContext.js#L414

return client.assert.ok(!state, `Error: Resource ${file} is listed on the filesList`)

#4103 (comment)

    Then folder "simple-folder" shared by "User One" should be in "Declined" state on the webUI
waiting for 500ms ...
    When the user browses to the files page
Timed out while waiting for element <//button[@id="new-file-menu-btn" and contains(@class, "uk-button-primary")]> to be present for 20000 milliseconds. - expected "found" but got: "not found" (20020ms)
undefined√ Element <//div[contains(@class, "oc-file") and @data-preview-loaded="false"]> was not present after 16 milliseconds.
    Then folder "/Shares" should not be listed on the webUI
√ Element <#files-list, #shared-with-list> was visible after 56 milliseconds.
√ Element <//*[contains(@class, "oc-loader")]> was not present after 24 milliseconds.
√ Passed [ok]: Error: Resource /Shares is listed on the filesList

  Result: passed

That looks really strange - the step checks that folder "/Shares" should not be listed on the webUI and reports Error: Resource /Shares is listed on the filesList but the test scenario gets Result: passed

We should not have output in the test log like:
Passed [ok]: Error: Resource /Shares is listed on the filesList

That makes people's head hurt when trying to look into real problems.

Activity

  1. changed the title [-]UI tests emit messages that lok like errors[/-] [+]UI tests emit messages that look like errors[/+] on Sep 29, 2020
  2. self-assigned this
    on Nov 2, 2020
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