Skip to content

Commit

Permalink
OP-325: Behat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Jul 3, 2024
1 parent a57b592 commit 39d3e23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion features/admin/adding_media.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Feature: Adding new media
When I go to the create media page
And I fill the code with "image"
And I fill the name with "Image"
And I fill the content with "Main image"
And I fill the link content with "Main image"
And I upload the "aston_martin_db_11.jpg" image
And I add it
Then I should be notified that new media has been created
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h2 class="center aligned">{{ media.translation.name }}</h2>
<h2 class="center aligned">{{ media.name }}</h2>
<img class="ui fluid image" src="{{ media.path }}" alt="{{ media.translation.alt }}"
{% if media.width is not null %} width="{{ media.width }}" {% endif %}
{% if media.height is not null %} height="{{ media.height }}" {% endif %}
Expand Down
4 changes: 2 additions & 2 deletions tests/Behat/Context/Ui/Admin/MediaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public function iFillTheNameWith(string $name): void
}

/**
* @When I fill the content with :arg1
* @When I fill the link content with :arg1
*/
public function iFillTheContentWith(string $content): void
{
$this->resolveCurrentPage()->fillContent($content);
$this->resolveCurrentPage()->fillField('Link content', $content);
}

/**
Expand Down

0 comments on commit 39d3e23

Please sign in to comment.