Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization tests for saved changes in different locales #1516

Merged
merged 5 commits into from
Jun 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"