Skip to content

Conversation

@danxuliu
Copy link
Member

Backport of #8382

The typo in .drone.yml in the original pull request is already fixed in this backport.

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>
@danxuliu danxuliu added this to the Nextcloud 13.0.1 milestone Feb 16, 2018
@danxuliu danxuliu requested a review from MorrisJobke February 16, 2018 11:36
@codecov
Copy link

codecov bot commented Feb 16, 2018

Codecov Report

Merging #8395 into stable13 will increase coverage by <.01%.
The diff coverage is n/a.

@@              Coverage Diff               @@
##             stable13    #8395      +/-   ##
==============================================
+ Coverage       51.23%   51.23%   +<.01%     
  Complexity      24986    24986              
==============================================
  Files            1608     1608              
  Lines           95089    95089              
  Branches         1376     1376              
==============================================
+ Hits            48718    48721       +3     
+ Misses          46371    46368       -3
Impacted Files Coverage Δ Complexity Δ
lib/private/Server.php 80.66% <0%> (+0.11%) 134% <0%> (ø) ⬇️
apps/files_trashbin/lib/Trashbin.php 72.53% <0%> (+0.24%) 136% <0%> (ø) ⬇️
lib/private/Files/Cache/Propagator.php 96.2% <0%> (+1.26%) 16% <0%> (ø) ⬇️

@MorrisJobke MorrisJobke merged commit 964b511 into stable13 Feb 16, 2018
@MorrisJobke MorrisJobke deleted the stable13-8382-make-acceptance-tests-for-comments-more-consistent-with-the-others branch February 16, 2018 13:33
@MorrisJobke MorrisJobke mentioned this pull request Mar 9, 2018
10 tasks
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