Skip to content

Commit

Permalink
Added support for multiple alternative radars in JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Mowday committed Feb 27, 2024
1 parent cc97c1a commit f3b7923
Show file tree
Hide file tree
Showing 6 changed files with 385 additions and 9 deletions.
5 changes: 3 additions & 2 deletions spec/end_to_end_tests/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"CSV_FILE_URL": "https://raw.githubusercontent.com/thoughtworks/build-your-own-radar/master/spec/end_to_end_tests/resources/sheet.csv",
"JSON_FILE_URL": "https://raw.githubusercontent.com/thoughtworks/build-your-own-radar/master/spec/end_to_end_tests/resources/data.json",
"CSV_FILE_URL": "/e2e_resources/sheet.csv",
"JSON_FILE_URL": "/e2e_resources/data.json",
"JSON_MULTI_RADAR_FILE_URL": "/e2e_resources/multi_data.json",
"PUBLIC_GOOGLE_SHEET_URL": "https://docs.google.com/spreadsheets/d/1wZVb8V53O0Lzr4iMaz4qjJZKteA1xQhJNajGq0jE9sw",
"PUBLIC_GOOGLE_SHEET_TITLE": "BYOR Test - Public Google Sheet",
"PUBLIC_GOOGLE_SHEET_RADAR_SHEET_NAMES": ["Build your Technology Radar", "Build your Technology Radar - Sheet 2"],
Expand Down
5 changes: 5 additions & 0 deletions spec/end_to_end_tests/pageObjects/byor_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ class ByorPage {
cy.get(this.textBox).type(config.JSON_FILE_URL)
}

provideMultiJsonName() {
cy.get(this.textBox).clear()
cy.get(this.textBox).type(config.JSON_MULTI_RADAR_FILE_URL)
}

providePublicSheetUrl() {
cy.get(this.textBox).clear()
cy.get(this.textBox).type(config.PUBLIC_GOOGLE_SHEET_URL)
Expand Down
Loading

0 comments on commit f3b7923

Please sign in to comment.