aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-03-06 01:29:54 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2021-03-06 01:29:54 +0100
commitbc084070c871135788e3992b7367386659b093a8 (patch)
treeb24a81f9d953ce1b58ab58e485b32a5609894721 /tests/acceptance/features/bootstrap
parentd5586ec4370588aae7dd33a7f370ae4e00dbe843 (diff)
downloadnextcloud-server-bc084070c871135788e3992b7367386659b093a8.tar.gz
nextcloud-server-bc084070c871135788e3992b7367386659b093a8.zip
Fix delete user acceptance test
Adding some missing asserts showed that the "delete user" acceptance test was silently failing, as the deletion was not being confirmed in the dialog and thus the user was not being deleted. The dialog button contains a single quote ("user0's"), so the XPath expression had to be adjusted (it seems that it is not possible to escape a single quote in a string enclosed in single quotes in XPath 1.0). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests/acceptance/features/bootstrap')
-rw-r--r--tests/acceptance/features/bootstrap/DialogContext.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/acceptance/features/bootstrap/DialogContext.php b/tests/acceptance/features/bootstrap/DialogContext.php
index e2dccf7b113..cbd02b35553 100644
--- a/tests/acceptance/features/bootstrap/DialogContext.php
+++ b/tests/acceptance/features/bootstrap/DialogContext.php
@@ -38,7 +38,7 @@ class DialogContext implements Context, ActorAwareInterface {
* @return Locator
*/
public static function theDialogButton($text) {
- return Locator::forThe()->xpath("//button[normalize-space() = '$text']")->
+ return Locator::forThe()->xpath("//button[normalize-space() = \"$text\"]")->
descendantOf(self::theDialog())->
describedAs($text . " button of the dialog");
}