Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2016-03-18 01:36:41 +0300
committerOlivier Paroz <github@oparoz.com>2016-03-18 01:36:41 +0300
commit867e96d73985911c82eb1c82a4b6c0708f659416 (patch)
tree925745a044a2d2802558e5f95112e9d128e8e583 /tests
parent5b7802cae59888c1a482fcd4db70122e5a07c81f (diff)
Use a better selector to detect HTML elements
Diffstat (limited to 'tests')
-rw-r--r--tests/_support/Page/Acceptance/Login.php2
-rw-r--r--tests/acceptance/LoginCept.php2
-rw-r--r--tests/acceptance/SignInAsUserCept.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/_support/Page/Acceptance/Login.php b/tests/_support/Page/Acceptance/Login.php
index 140ac0f2..aea79329 100644
--- a/tests/_support/Page/Acceptance/Login.php
+++ b/tests/_support/Page/Acceptance/Login.php
@@ -57,7 +57,7 @@ class Login {
public function confirmLogin() {
$I = $this->acceptanceTester;
- $I->seeElement(FilesPage::$contentDiv);
$I->seeCurrentUrlEquals(FilesPage::$URL);
+ $I->seeElement(['css' => FilesPage::$contentDiv]);
}
}
diff --git a/tests/acceptance/LoginCept.php b/tests/acceptance/LoginCept.php
index ff259eb3..0c57bbdf 100644
--- a/tests/acceptance/LoginCept.php
+++ b/tests/acceptance/LoginCept.php
@@ -17,4 +17,4 @@ $I->am('A standard user');
$I->wantTo('ensure that I can see the login page');
$I->amOnPage(LoginPage::$URL);
-$I->seeElement(LoginPage::$loginButton);
+$I->seeElement(['css' => LoginPage::$loginButton]);
diff --git a/tests/acceptance/SignInAsUserCept.php b/tests/acceptance/SignInAsUserCept.php
index 5b318bf4..521f8b68 100644
--- a/tests/acceptance/SignInAsUserCept.php
+++ b/tests/acceptance/SignInAsUserCept.php
@@ -26,4 +26,4 @@ $loginPage->confirmLogin();
$I->click('.menutoggle');
$I->click('Gallery', '#navigation');
$I->seeCurrentUrlEquals(GalleryPage::$URL);
-$I->seeElement(GalleryPage::$contentDiv);
+$I->seeElement(['css' => GalleryPage::$contentDiv]);