Skip to content

Commit

Permalink
add preview Action test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Nov 3, 2022
1 parent 939da0f commit f95237c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests-behat/card.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
Feature: Card

Scenario: Card with entity action, entity must not reload
Scenario: Card with entity, entity must not reload
Given I am on "data-action/factory-view.php"
Then I click using selector "i.eye.icon"
Then Modal is open with text "Display Preview prior to run the action"
# TODO fix
# Then Modal is open with text "Previewing country France NO RELOAD"
Then I press Modal button "Preview"
Then Toast display should contain text "Success: Done previewing France"

Scenario: Card with entity action, entity must not reload
When I press button "Edit"
Then Modal is open with text "Edit Country"
Then I check if input value for ".modal.front input" match text "Czech Republic NO RELOAD"
Expand Down

0 comments on commit f95237c

Please sign in to comment.