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

Cypress testing/add grant contribution tests #9518

Conversation

ksolo
Copy link
Contributor

@ksolo ksolo commented Sep 23, 2021

Description

Testing standard checkout with a single grant and with two grants in the cart.

Testing

CI will run the tests and give us the 👍

ksolo and others added 11 commits September 28, 2021 13:44
* updating dependencies to use custom fork of cypress-metamask

* add script and options for running cypress tests

* add wait-on package for scripting cypress runs

* travis docs indicate that bionic will start xvfb by adding it as a service

* add migration step

* another attempt at including cypress tests

* redirect webserver logs to /dev/null

* bad idea to move stdout to dev/null

* add NETWORK_NAME to travis env file

* update runserver command to go to background

* updating existing cypress tests to run on ci

* update docker-compose file: use default accounts for ganache

* add set -x to get more visibility into cypress command args

* update call to cypress run to see if travis will recognize flags

* try running cypress directly from node_modules

* remove set -x now that arguments are making their way to cypress
update ci to only run grant creation

update migration

this migration has already been executed on production and will
be skipped when migrating deploys.

updated to allow new uses and the ci environment to properly load
the grant categories, which is required when creating a new grant.

remove specifying which spec to run

see if grant test can pass in isolation

whoops - forgot to add the backslash

grant passing in isolation, will all tests pass

fix broken test with tag updates

try running without touching metamask

use npm ci on travis, update before/after hooks in cypress

go back to npm install

remove node_modules from cache

use yarn to install dependencies

remove debugger
@ksolo ksolo force-pushed the cypress-testing/add-grant-contribution-tests branch from 76d4bea to 06cb3f0 Compare September 28, 2021 19:09
@thelostone-mc thelostone-mc merged commit 65aea9b into gitcoinco:master Sep 29, 2021
@thelostone-mc
Copy link
Member

Merging as CI now passes 🙌

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.

2 participants