Chore: Login via the API by default in Cypress (#43167)

* Use the api to login in cypress by default

* export getBaseUrl

* Revert "export getBaseUrl"

This reverts commit ae7eecea37.

* just use BASE_URL from the env

* fix exemplars test

* move into separate functions
This commit is contained in:
Ashley Harrison
2021-12-16 09:28:37 +00:00
committed by GitHub
parent d03aef1951
commit c3ca46d5f6
4 changed files with 26 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ describe('Exemplars', () => {
e2e.flows.login('admin', 'admin');
e2e()
.request({ url: `/api/datasources/name/${dataSourceName}`, failOnStatusCode: false })
.request({ url: `${e2e.env('BASE_URL')}/api/datasources/name/${dataSourceName}`, failOnStatusCode: false })
.then((response) => {
if (response.isOkStatusCode) {
return;