X Tutup
Skip to content

Commit 16cb9fb

Browse files
committed
Adjust tests to open ShareActionsDropDown to be able to see 'notify by email' button
1 parent 69e66a5 commit 16cb9fb

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

tests/acceptance/features/bootstrap/WebUISharingContext.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,15 +1020,24 @@ public function removesPublicLinkAtCertainPosition($number, $entryName) {
10201020
}
10211021

10221022
/**
1023-
* @When the user sends the share notification by email using the webUI
1024-
*
10251023
* @return void
10261024
*/
1027-
public function theUserSendsTheShareNotificationByEmailUsingTheWebui() {
1025+
public function sendShareNotificationByEmailUsingTheWebui() {
10281026
Assert::assertNotNull(
10291027
$this->sharingDialog, "Sharing Dialog is not open"
10301028
);
1029+
$this->sharingDialog->openShareActionsDropDown();
10311030
$this->sharingDialog->sendShareNotificationByEmail($this->getSession());
1031+
$this->sharingDialog->closeShareActionsDropDown();
1032+
}
1033+
1034+
/**
1035+
* @When the user sends the share notification by email using the webUI
1036+
*
1037+
* @return void
1038+
*/
1039+
public function theUserSendsTheShareNotificationByEmailUsingTheWebui() {
1040+
$this->sendShareNotificationByEmailUsingTheWebui();
10321041
}
10331042

10341043
/**
@@ -1038,11 +1047,8 @@ public function theUserSendsTheShareNotificationByEmailUsingTheWebui() {
10381047
*/
10391048
public function theUserShouldNotBeAbleToSendTheShareNotificationByEmailUsingTheWebui() {
10401049
$errorMessage = "";
1041-
Assert::assertNotNull(
1042-
$this->sharingDialog, "Sharing Dialog is not open"
1043-
);
10441050
try {
1045-
$this->sharingDialog->sendShareNotificationByEmail($this->getSession());
1051+
$this->sendShareNotificationByEmailUsingTheWebui();
10461052
} catch (Exception $e) {
10471053
$errorMessage = $e->getMessage();
10481054
}

0 commit comments

Comments
 (0)
X Tutup