This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
integration_tests: | |
<<: *defaults | |
docker: | |
## docker image file for cypress | |
- image: cypress/base:8 | |
environment: | |
## this enables colors in the output | |
TERM: xterm | |
steps: | |
- attach_workspace: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('query: GetFoobar()', () => { | |
const GetFoobar = (foo, bar) => `{ | |
foo(foo: ${foo}, bar: ${bar}) { | |
id | |
foobar { | |
foo | |
bar | |
} | |
} | |
}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------- | |
// Log in and return auth token. | |
// -------------------------------------- | |
Cypress.Commands.add('login', () => { | |
const apiLoginRoot = Cypress.env('API_LOGIN_ROOT'); | |
const body = { | |
email, | |
password, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (on, config) => { | |
config.baseUrl = process.env.API_ROOT; | |
config.env.API_LOGIN_ROOT = process.env.API_LOGIN_ROOT; | |
config.env.GQL_SERVER_ROOT = process.env.GQL_SERVER_ROOT; | |
return config; | |
}; |