-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8489 from alphagov/fix-ci-issue-by-separating-sel…
…enium-based-tests Fix selenium based tests failing in CI for an unknown reason
- Loading branch information
Showing
2 changed files
with
28 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# For an unknown reason selenium driver based image-tests began to fail in the CI workflow when executed in Github | ||
# Running the tests from a separate feature-file seems to fix the issue | ||
Feature: Images tab on edit edition | ||
|
||
Background: | ||
Given I am a writer | ||
|
||
@javascript | ||
Scenario: Image uploaded with cropping required | ||
And a draft document with images exists | ||
When I visit the images tab of the document with images | ||
Then I should see a list with 2 images | ||
When I upload a 960x960 image | ||
Then I am redirected to a page for image cropping | ||
When I click the "Save and continue" button on the crop page | ||
And I update the image details and save | ||
Then I should see a list with 3 image | ||
|
||
@javascript | ||
Scenario: Uploading an oversized file with duplicated filename | ||
When a draft document with images exists | ||
And I visit the images tab of the document with images | ||
And I upload a 960x960 image | ||
And I am redirected to a page for image cropping | ||
And I click the "Save and continue" button on the crop page | ||
And I update the image details and save | ||
And I upload a 960x960 image | ||
Then I should get 1 error message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters