File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
tests/acceptance/features Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Feature: app-comments
2424 And I open the details view for "Folder"
2525 And I open the "Comments" tab in the details view
2626 And I create a new comment with "Comment in Folder" as message
27+ And I see a comment with "Comment in Folder" as message
2728 And I open the details view for "welcome.txt"
2829 # The "Comments" tab should already be opened
2930 When I create a new comment with "Comment in welcome.txt" as message
Original file line number Diff line number Diff line change @@ -83,8 +83,12 @@ public function iCreateANewCommentWithAsMessage($commentText) {
8383 * @Then /^I see that there are no comments$/
8484 */
8585 public function iSeeThatThereAreNoComments () {
86- PHPUnit_Framework_Assert::assertTrue (
87- $ this ->actor ->find (self ::emptyContent (), 10 )->isVisible ());
86+ if (!WaitFor::elementToBeEventuallyShown (
87+ $ this ->actor ,
88+ self ::emptyContent (),
89+ $ timeout = 10 * $ this ->actor ->getFindTimeoutMultiplier ())) {
90+ PHPUnit_Framework_Assert::fail ("The no comments message is not visible yet after $ timeout seconds " );
91+ }
8892 }
8993
9094 /**
You can’t perform that action at this time.
0 commit comments