Skip to content

Commit fdb66b1

Browse files
committed
[Behat] Fix test files after rebase
1 parent ce7c586 commit fdb66b1

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

tests/Behat/Context/Ui/Admin/ContentCollectionContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ public function theContentElementAtPositionShouldBeOfType(string $ordinal, strin
216216
$type,
217217
);
218218
}
219+
219220
/**
220221
* @Then the :ordinal content element should contain :content
221222
*/

tests/Behat/Element/Admin/ContentElementsCollectionElement.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,16 @@ public function removeContentElement(string $type): void
157157
$this->waitForFormUpdate();
158158
}
159159

160+
public function insertContentElementAfterPosition(string $type, int $afterPosition): void
161+
{
162+
$this->insertContentElementAtDividerIndex($type, $afterPosition);
163+
}
164+
165+
public function insertContentElementBeforePosition(string $type, int $beforePosition): void
166+
{
167+
$this->insertContentElementAtDividerIndex($type, $beforePosition - 1);
168+
}
169+
160170
public function moveContentElementUp(int $position): void
161171
{
162172
$button = $this->getSortButton($position, 'up');
@@ -165,6 +175,14 @@ public function moveContentElementUp(int $position): void
165175
$this->waitForFormUpdate();
166176
}
167177

178+
public function moveContentElementDown(int $position): void
179+
{
180+
$button = $this->getSortButton($position, 'down');
181+
$button->click();
182+
183+
$this->waitForFormUpdate();
184+
}
185+
168186
public function getContentElementTypeAtPosition(int $position): string
169187
{
170188
$selectedOption = $this->getContentElementAtPosition($position)->find('css', 'option[selected]');

0 commit comments

Comments
 (0)