()
| 13 | } |
| 14 | |
| 15 | function getConfig() { |
| 16 | return getBuild().then(build => { |
| 17 | // Load the config.json |
| 18 | return cy.fixture(`${build.coursedir}/config.json`).then(config => { |
| 19 | // Return for cy.getConfig().then(config => {}); |
| 20 | // Expose this.config in cypress |
| 21 | return cy.wrap(config).as('config'); |
| 22 | }); |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | function getData(languageCode = null) { |
| 27 | try { |