Skip to content
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

Merged
merged 5 commits into from Feb 2, 2021
Merged

Conversation

brdalsnes
Copy link
Contributor

@brdalsnes brdalsnes commented Jan 26, 2021

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

@brdalsnes
Copy link
Contributor Author

Hva skjer her? Fungerer lokalt

@gunnarvelle
Copy link
Member

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",
Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tja. Kva seier cypressdokumentasjonen?

Copy link
Contributor Author

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?

Copy link
Contributor

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?

@brdalsnes brdalsnes merged commit c5ea39c into master Feb 2, 2021
@gunnarvelle gunnarvelle deleted the search-page-cypress-tests branch May 10, 2021 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants