Skip to content

Commit

Permalink
better name
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Apr 28, 2023
1 parent 59d442f commit 5690236
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Behat/RwDemosContextTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ public function restoreDatabase(): void
}

/**
* @When I allow cross-request DB modifications
* @When I persist DB changes across requests
*/
public function allowDbModifications(): void
public function persistDbChangesAcrossRequests(): void
{
if ($this->databaseBackupData === null) {
if (file_exists($this->demosDir . '/db-behat-rw.txt')) {
Expand Down
4 changes: 2 additions & 2 deletions tests-behat/card-deck.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Feature: CardDeck
Then I press Modal button "Ok"
Then Toast display should contain text 'Country action "delete" with "United Kingdom" entity was executed.'

Scenario: delete - with cross-request DB modifications
When I allow cross-request DB modifications
Scenario: delete - with unlocked DB
When I persist DB changes across requests
Then I press button "Delete"
Then I press Modal button "Ok"
Then Toast display should contain text 'Record has been deleted!'
Expand Down
4 changes: 2 additions & 2 deletions tests-behat/crud.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ Feature: Crud
# make sure search query stick
Then I should see "United Kingdom"

Scenario: edit - with cross-request DB modifications
Scenario: edit - with unlocked DB
# TODO hotfix "element not interactable"
Given I am on "_unit-test/crud.php"
Then I search grid for "united kingdom"

Then I should not see "My United Kingdom"
When I allow cross-request DB modifications
When I persist DB changes across requests
Then I press button "Edit"
Then Modal is open with text "Edit Country"
Then I fill in "atk_fp_country__name" with "My United Kingdom"
Expand Down

0 comments on commit 5690236

Please sign in to comment.