aboutsummaryrefslogtreecommitdiffstats
path: root/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/acceptance/features/bootstrap/FilesAppSharingContext.php')
-rw-r--r--tests/acceptance/features/bootstrap/FilesAppSharingContext.php68
1 files changed, 34 insertions, 34 deletions
diff --git a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
index 95398423e3b..40c055ed06e 100644
--- a/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
+++ b/tests/acceptance/features/bootstrap/FilesAppSharingContext.php
@@ -378,9 +378,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
// Close the share link menu if it is open to ensure that it does not
// cover the copy link button.
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareLinkMenu($shareLinkMenuTriggerElement),
- $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareLinkMenu($shareLinkMenuTriggerElement),
+ $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
// It may not be possible to click on the menu button (due to the
// menu itself covering it), so "Enter" key is pressed instead.
$this->actor->find(self::shareLinkMenuButton(), 2)->getWrappedElement()->keyPress(13);
@@ -528,7 +528,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsSharedWithMeBy($sharedByName) {
Assert::assertEquals(
- $this->actor->find(self::sharedByLabel(), 10)->getText(), "Shared with you by $sharedByName");
+ $this->actor->find(self::sharedByLabel(), 10)->getText(), "Shared with you by $sharedByName");
}
/**
@@ -536,7 +536,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsSharedWith($sharedWithName) {
Assert::assertTrue(
- $this->actor->find(self::sharedWithRow($sharedWithName), 10)->isVisible());
+ $this->actor->find(self::sharedWithRow($sharedWithName), 10)->isVisible());
}
/**
@@ -544,9 +544,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatTheFileIsNotSharedWith($sharedWithName) {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::sharedWithRow($sharedWithName),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::sharedWithRow($sharedWithName),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The shared with $sharedWithName row is still shown after $timeout seconds");
}
}
@@ -556,9 +556,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatResharingTheFileIsNotAllowed() {
Assert::assertEquals(
- $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
+ $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
Assert::assertEquals(
- $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("placeholder"), "Resharing is not allowed");
+ $this->actor->find(self::shareWithInput(), 10)->getWrappedElement()->getAttribute("placeholder"), "Resharing is not allowed");
}
/**
@@ -566,9 +566,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
*/
public function iSeeThatResharingTheFileByLinkIsNotAvailable() {
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareLinkAddNewButton(),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareLinkAddNewButton(),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The add new share link button is still shown after $timeout seconds");
}
}
@@ -581,7 +581,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertEquals(
- $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
+ $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
}
/**
@@ -592,7 +592,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertTrue(
- $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -603,7 +603,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertFalse(
- $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canEditCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -614,7 +614,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertEquals(
- $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
+ $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->getWrappedElement()->getAttribute("disabled"), "disabled");
}
/**
@@ -625,7 +625,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertTrue(
- $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -636,7 +636,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertFalse(
- $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canCreateCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -647,9 +647,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::canReshareCheckbox($sharedWithName, $shareWithMenuTriggerElement),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::canReshareCheckbox($sharedWithName, $shareWithMenuTriggerElement),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The resharing checkbox for $sharedWithName is still shown after $timeout seconds");
}
}
@@ -662,7 +662,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertTrue(
- $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -673,7 +673,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareWithMenuTriggerElement = $this->actor->find(self::shareWithMenuTrigger($sharedWithName), 10);
Assert::assertFalse(
- $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
+ $this->actor->find(self::canReshareCheckboxInput($sharedWithName, $shareWithMenuTriggerElement), 10)->isChecked());
}
/**
@@ -719,9 +719,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
}
if (!WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::disabledPasswordProtectField($shareLinkMenuTriggerElement),
- $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::disabledPasswordProtectField($shareLinkMenuTriggerElement),
+ $timeout = 10 * $this->actor->getFindTimeoutMultiplier())) {
Assert::fail("The password protect field is still disabled after $timeout seconds");
}
}
@@ -766,7 +766,7 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
$shareLinkMenuTriggerElement = $this->actor->find(self::shareLinkMenuTrigger(), 10);
try {
Assert::assertFalse(
- $this->actor->find(self::passwordProtectByTalkCheckbox($shareLinkMenuTriggerElement))->isVisible());
+ $this->actor->find(self::passwordProtectByTalkCheckbox($shareLinkMenuTriggerElement))->isVisible());
} catch (NoSuchElementException $exception) {
}
}
@@ -788,9 +788,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
// case it is in the process of being hidden due to a previous action,
// in which case it is shown again.
if (WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareLinkMenu($shareLinkMenuTriggerElement),
- $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareLinkMenu($shareLinkMenuTriggerElement),
+ $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
$this->actor->find(self::shareLinkMenuButton(), 10)->click();
}
}
@@ -803,9 +803,9 @@ class FilesAppSharingContext implements Context, ActorAwareInterface {
// case it is in the process of being hidden due to a previous action,
// in which case it is shown again.
if (WaitFor::elementToBeEventuallyNotShown(
- $this->actor,
- self::shareWithMenu($shareWithName, $shareWithMenuTriggerElement),
- $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
+ $this->actor,
+ self::shareWithMenu($shareWithName, $shareWithMenuTriggerElement),
+ $timeout = 2 * $this->actor->getFindTimeoutMultiplier())) {
$this->actor->find(self::shareWithMenuButton($shareWithName), 10)->click();
}
}