New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add search page cypress tests #621
Conversation
Hva skjer her? Fungerer lokalt |
Lokalt brukes graphql, men på travis må du ha en fixture. |
package.json
Outdated
"e2e": "cypress open", | ||
"e2e-use-fixtures": "cross-env CYPRESS_USE_FIXTURES=true cypress open", | ||
"e2e-record-fixtures": "cross-env CYPRESS_RECORD_FIXTURES=true cypress run", | ||
"e2e": "BABEL_ENV=test cypress open", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hva skal denne være? BABEL_ENV eller NODE_ENV må være satt i cypress 6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tja. Kva seier cypressdokumentasjonen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ser ut som det er en bug faktisk: cypress-io/cypress#6755. Kan kanskje la det stå som det er inntil videre?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tror kanskje vi må bruke cross-env for å sette denne for at det skal fungere likt på windows?
To enkle tester for å sjekke at søkebar rendres
Oppdaterer også til cypress 6 og endrer måten GraphQL requests blir gjort:
Fixes NDLANO/Issues#1740