Skip to content

Conversation

@danxuliu
Copy link
Member

This pull request adds the acceptance tests for comments to Drone and also changes some of its code to make it more consistent with the other acceptance tests (how the fields are sorted in the context file, adjustments in the timeouts, and a change in a step to make it more reusable and also simplify its code).

As it does not interfere with Nextcloud 13 code but improves the test coverage I would backport this to stable13 (or, if not all, at least the commit that adds the acceptance tests for comments to Drone, as they are already in stable13 but unused).

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The locators are moved above the step definitions for consistency with
other context files; besides that I made some minor adjustments for
consistency too in the locator descriptions and identation, and moved
the locators for ".newCommentRow" descendants together.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Depending on the previous steps the new comment field may be already
shown or not when the step to create a new comment is executed.
Therefore, the timeout was increased from 2 to the "standard" 10 seconds
used in other tests.

If the new comment field was found there is no need to use a timeout
when looking for the new comment button; it is either there or not, it
will not appear after some time.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Instead of checking that the list contains one comment it is now checked
that a comment with certain message is visible. This makes the step (and
the locator) more reusable in future tests and also simplifies the code.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@MorrisJobke
Copy link
Member

Tests only -> merge

@MorrisJobke MorrisJobke merged commit 66654bb into master Feb 16, 2018
@MorrisJobke MorrisJobke deleted the make-acceptance-tests-for-comments-more-consistent-with-the-others branch February 16, 2018 09:27
@MorrisJobke
Copy link
Member

@danxuliu Please do the backport - that's fine

@danxuliu
Copy link
Member Author

danxuliu commented Feb 16, 2018

@MorrisJobke When doing the backport I noticed that I am not well versed in the fine art of copy-pasting; access-comments should have been app-comments instead. Due to that typo the tests for comments seem to run in Drone, but it is just the Selenium container, without any test.

#8396 fixes that in master; the typo is already fixed in the backport.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants