Skip to content

Commit dc51f2d

Browse files
author
Carl Mowday
committed
Added support for multiple alternative radars in JSON files
1 parent cc97c1a commit dc51f2d

File tree

6 files changed

+384
-9
lines changed

6 files changed

+384
-9
lines changed

spec/end_to_end_tests/config.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"CSV_FILE_URL": "https://raw.githubusercontent.com/thoughtworks/build-your-own-radar/master/spec/end_to_end_tests/resources/sheet.csv",
3-
"JSON_FILE_URL": "https://raw.githubusercontent.com/thoughtworks/build-your-own-radar/master/spec/end_to_end_tests/resources/data.json",
2+
"CSV_FILE_URL": "/e2e_resources/sheet.csv",
3+
"JSON_FILE_URL": "/e2e_resources/data.json",
4+
"JSON_MULTI_RADAR_FILE_URL": "/e2e_resources/multi_data.json",
45
"PUBLIC_GOOGLE_SHEET_URL": "https://docs.google.com/spreadsheets/d/1wZVb8V53O0Lzr4iMaz4qjJZKteA1xQhJNajGq0jE9sw",
56
"PUBLIC_GOOGLE_SHEET_TITLE": "BYOR Test - Public Google Sheet",
67
"PUBLIC_GOOGLE_SHEET_RADAR_SHEET_NAMES": ["Build your Technology Radar", "Build your Technology Radar - Sheet 2"],

spec/end_to_end_tests/pageObjects/byor_page.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ class ByorPage {
1616
cy.get(this.textBox).type(config.JSON_FILE_URL)
1717
}
1818

19+
provideMultiJsonName() {
20+
cy.get(this.textBox).clear()
21+
cy.get(this.textBox).type(config.JSON_MULTI_RADAR_FILE_URL)
22+
}
23+
1924
providePublicSheetUrl() {
2025
cy.get(this.textBox).clear()
2126
cy.get(this.textBox).type(config.PUBLIC_GOOGLE_SHEET_URL)

0 commit comments

Comments
 (0)