|
@@ 70-77 (lines=8) @@
|
| 67 |
|
* @Then /^I should see the "([^"]*)" form$/ |
| 68 |
|
* @param string $id HTML ID of form |
| 69 |
|
*/ |
| 70 |
|
public function iShouldSeeTheForm($id) |
| 71 |
|
{ |
| 72 |
|
/** @var DocumentElement $page */ |
| 73 |
|
$page = $this->getMainContext()->getSession()->getPage(); |
| 74 |
|
$form = $page->find('css', "form#{$id}"); |
| 75 |
|
assertNotNull($form, "form with id $id could not be found"); |
| 76 |
|
assertTrue($form->isVisible(), "form with id $id is not visible"); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/** |
| 80 |
|
* @Then /^I should see the file status flag$/ |
|
@@ 82-88 (lines=7) @@
|
| 79 |
|
/** |
| 80 |
|
* @Then /^I should see the file status flag$/ |
| 81 |
|
*/ |
| 82 |
|
public function iShouldSeeTheFileStatusFlag() |
| 83 |
|
{ |
| 84 |
|
$page = $this->getMainContext()->getSession()->getPage(); |
| 85 |
|
$flag = $page->find('css', '.editor__status-flag'); |
| 86 |
|
assertNotNull($flag, "File editor status flag could not be found"); |
| 87 |
|
assertTrue($flag->isVisible(), "File status flag is not visible"); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
/** |
| 91 |
|
* @Then /^I should not see the file status flag$/ |