Skip to content

Commit

Permalink
Merge pull request #1516 from bolt/tests/localization-test-saved-version
Browse files Browse the repository at this point in the history
Localization tests for saved changes in different locales
  • Loading branch information
bobdenotter committed Jun 22, 2020
2 parents 1c55edf + 6a20069 commit e6f9992
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/e2e/edit_record_2.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,25 @@ Feature: Preview record after editing
And I reload the page
And I wait 1 second
Then the "field-title" field should not contain "Check preview"

@javascript
Scenario: As an Admin I want to view saved changes of a record
Given I am logged in as "admin"
When I am on "/bolt/edit/2"

When I fill in "field-heading" with "This is the title in the wrong locale"
And I scroll "Save changes" into view
And I press "Save changes"

When I am on "/bolt/edit/2?edit_locale=nl"
And I fill in "field-heading" with "This is the title in the correct locale"
And I scroll "Save changes" into view
And I press "Save changes"

Then I should be on "/bolt/edit/2?edit_locale=nl"

When I scroll "View saved version" into view
And I click "View saved version"

Then I should not see "This is the title in the wrong locale"
And I should see "This is the title in the correct locale"

0 comments on commit e6f9992

Please sign in to comment.