Skip to content

Commit fdb82ed

Browse files
committed
[behat]: adjust behat test to new behavior
1 parent 0974e09 commit fdb82ed

4 files changed

Lines changed: 1 addition & 9 deletions

File tree

templates/admin/shared/component_elements/form_theme.html.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
<button
2424
type="button"
2525
class="btn p-1 btn-outline-primary d-flex align-items-center justify-content-center"
26-
data-bs-toggle="tooltip"
27-
data-bs-title="{{ 'sylius_cms.ui.content_elements.move_up_btn'|trans }}"
2826
data-action="live#action"
2927
data-live-action-param="moveCollectionItem"
3028
data-live-name-param="{{ form.parent.vars.full_name }}"
@@ -43,8 +41,6 @@
4341
<button
4442
type="button"
4543
class="btn p-1 btn-outline-primary d-flex align-items-center justify-content-center lh-1"
46-
data-bs-toggle="tooltip"
47-
data-bs-title="{{ 'sylius_cms.ui.content_elements.move_down_btn'|trans }}"
4844
data-action="live#action"
4945
data-live-action-param="moveCollectionItem"
5046
data-live-name-param="{{ form.parent.vars.full_name }}"

tests/Behat/Element/Admin/ContentElementsCollectionElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private function getSortButton(int $position, string $direction): NodeElement
195195
$elements = $this->getContentElements();
196196
Assert::keyExists($elements, $position - 1, sprintf('No content element at position %d.', $position));
197197

198-
$button = $elements[$position - 1]->find('css', sprintf('[data-sort-direction="%s"]', $direction));
198+
$button = $elements[$position - 1]->find('css', sprintf('[data-live-direction-param="%s"]', $direction));
199199
Assert::notNull($button, sprintf('Sort %s button not found at position %d.', $direction, $position));
200200

201201
return $button;

translations/messages.de.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ sylius_cms:
7373
spacer_height: Höhe des Abstandshalters in Pixeln
7474
heading_type: Überschrift-Typ
7575
template: Inhaltselementvorlage
76-
move_up_btn: Nach oben verschieben
77-
move_down_btn: Nach unten verschieben
7876
taxon: Taxon
7977
display_for_products:
8078
label: Display für Produkte

translations/messages.en.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ sylius_cms:
8181
heading_type: Heading type
8282
template: Content elements template
8383
template_help: Provides a predefined collection of elements. Changing it will erase current configuration.
84-
move_up_btn: Move to the top
85-
move_down_btn: Down
8684
taxon: Taxon
8785
seo: SEO
8886
display_for_products:

0 commit comments

Comments
 (0)