Skip to content

Commit

Permalink
SFR-2078: Automate Different Publishing Sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ayan1229 committed Nov 5, 2024
1 parent 43802e8 commit 8e327ed
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

## [Prerelease]

- SFR-2078: autoamte and validate different publishing source collections

## [0.18.6]

- Add submit feedback error handling and new fields
- Fix docker file and playwright tests

## [0.18.5]

- Make NYPL footer sticky

## [0.18.4]
Expand Down
2 changes: 1 addition & 1 deletion cucumber.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"default": {
"import": ["playwright/tests/**/*.ts", "playwright/support/**/*.ts"],
"worldParameters": {
"appUrl": "http://localhost:3000/",
"appUrl": "https://drb-qa.nypl.org/",
"headless": false
}
}
Expand Down
32 changes: 32 additions & 0 deletions playwright/features/pubSource.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Feature: Specific Pub Sources
Scenario: As a user I search for title "How safe is eating chicken" and open the title after search result is loaded
Given I go to the "home" page
When I select "title" from the category dropdown
And I fill in the "homepage search box" with "How safe is eating chicken?"
And I click the "search button"
And I click the "first read online button"
And the "e-reader settings button" should be displayed

Scenario: Chicken Farm
Given I go to the "home" page
When I select "title" from the category dropdown
And I fill in the "homepage search box" with "Chicken Farm"
And I click the "search button"
And I click the "first read online button"
And the "e-reader settings button" should be displayed

Scenario: Reading Fiction in Antebellum America
Given I go to the "home" page
When I select "title" from the category dropdown
And I fill in the "homepage search box" with "Reading Fiction in Antebellum America"
And I click the "search button"
And I click the "first read online button"
And the "e-reader settings button" should be displayed

Scenario: Climate Change and Agriculture
Given I go to the "home" page
When I select "title" from the category dropdown
And I fill in the "homepage search box" with "Climate Change and Agriculture"
And I click the "search button"
And I click the "first read online button"
And the "e-reader settings button" should be displayed
5 changes: 5 additions & 0 deletions playwright/support/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,9 @@ export const inputs = {
petroleum: "petroleum",
"Robot Soccer": "Robot Soccer",
"Jane Austen": "Jane Austen",
"How safe is eating chicken?": "How safe is eating chicken?",
"Chicken Farm": "Chicken Farm",
"Reading Fiction in Antebellum America":
"Reading Fiction in Antebellum America",
"Climate Change and Agriculture": "Climate Change and Agriculture",
};

0 comments on commit 8e327ed

Please sign in to comment.