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 creation test #9461

Merged
merged 8 commits into from
Sep 21, 2021

Conversation

ksolo
Copy link
Contributor

@ksolo ksolo commented Sep 9, 2021

Description

Add end-to-end test for creating a new grant

Updates include:

  • move to yarn on CI - the yarn.lock file is used locally but CI was using npm causing dependency divergence
  • update grant type -> grant category mapping migration - the UI requires used to required a grant category, this was updated to allow those to be present. later migrations move to grant tags which ports the data from category into tags.
  • bump cypress-metamask to 1.0.10-dev - more consistent unlocking of the account instead of going straight to setup
  • add tests for creating a grant
Testing

These tests can run on CI

@ksolo ksolo force-pushed the cypress-testing/add-grant-creation-test branch from 05e3085 to cdf0ebb Compare September 10, 2021 14:54
@ksolo ksolo marked this pull request as ready for review September 10, 2021 15:14
@ksolo ksolo marked this pull request as draft September 10, 2021 15:19
@ksolo ksolo marked this pull request as ready for review September 10, 2021 19:10
@ksolo ksolo changed the base branch from red-squirrel to master September 10, 2021 19:13
@ksolo ksolo force-pushed the cypress-testing/add-grant-creation-test branch from 3c90a68 to 3517ce1 Compare September 10, 2021 19:35
@ksolo ksolo changed the base branch from master to red-squirrel September 10, 2021 19:45
@ksolo ksolo force-pushed the cypress-testing/add-grant-creation-test branch 2 times, most recently from d3232e1 to d6b4275 Compare September 14, 2021 17:23
@ksolo ksolo changed the base branch from red-squirrel to master September 14, 2021 17:33
@ksolo ksolo force-pushed the cypress-testing/add-grant-creation-test branch 3 times, most recently from c06ecd0 to 6d11d7a Compare September 17, 2021 19:05
ksolo and others added 8 commits September 20, 2021 09:57
* 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-creation-test branch from 020be19 to 5466a90 Compare September 20, 2021 16:57
@zlsgh zlsgh merged commit c09a3f2 into gitcoinco:master Sep 21, 2021
@ksolo ksolo deleted the cypress-testing/add-grant-creation-test branch September 29, 2021 13:20
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.

3 participants