summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-05-17 17:23:12 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2019-02-01 16:44:48 +0100
commitf7bb94d37945037b65075c3784f7fa68339ff3b2 (patch)
treee7eda1f5b291a3130c9f18de2fb059ee573cbb38 /tests/acceptance
parentaa7620e6ef40eea8c20e498bbde65dcf516e8aca (diff)
Fix locator when asserting that the chat view is shown in the main view
To check that the chat view is shown in the main view the ancestor locator of the chat view must be the main view; if the chat ancestor set in other steps is used it just checks that the chat view is shown somewhere, but it does not guarantee that it is shown in the main view. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/features/bootstrap/ChatContext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/ChatContext.php b/tests/acceptance/features/bootstrap/ChatContext.php
index fd8421bf7..02fb25729 100644
--- a/tests/acceptance/features/bootstrap/ChatContext.php
+++ b/tests/acceptance/features/bootstrap/ChatContext.php
@@ -240,7 +240,7 @@ class ChatContext implements Context, ActorAwareInterface {
* @Then I see that the chat is shown in the main view
*/
public function iSeeThatTheChatIsShownInTheMainView() {
- PHPUnit_Framework_Assert::assertTrue($this->actor->find(self::chatView($this->chatAncestor), 10)->isVisible());
+ PHPUnit_Framework_Assert::assertTrue($this->actor->find(self::chatView(TalkAppContext::mainView()), 10)->isVisible());
}
/**