graphql-engine/console/cypress
hasura-bot 862f160ee6 console: select first operator by default on the browse rows screen (close #5729) (#93)
Co-authored-by: Dmitrii Grachikov <dgrachikov@gmail.com>
Co-authored-by: Aleksandra Sikora <aleksandra@hasura.io>
GITHUB_PR_NUMBER: 6032
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/6032

Co-authored-by: Aleksandra Sikora <aleksandra@hasura.io>
Co-authored-by: Dmitrii Grachikov <dgrachikov@gmail.com>
GitOrigin-RevId: 44c2f5f082e3bd854a72abf56ca665bc1b213160
2020-11-24 16:17:57 +00:00
..
fixtures add console to graphql-engine 2018-06-28 10:27:37 +05:30
helpers console: allow configuring session_argument for custom functions (close #4499) (#4922) 2020-06-11 14:38:32 +02:00
integration console: select first operator by default on the browse rows screen (close #5729) (#93) 2020-11-24 16:17:57 +00:00
plugins console: more tests (#35) 2018-07-04 18:27:56 +05:30
support console: migrate cypress tests to TypeScript (#4550) 2020-05-27 14:56:29 +05:30
.eslintrc console: migrate cypress tests to TypeScript (#4550) 2020-05-27 14:56:29 +05:30
global.d.ts console: migrate cypress tests to TypeScript (#4550) 2020-05-27 14:56:29 +05:30
README.md metadata button appears for custom versions (fixe #618) (#662) 2018-10-09 14:05:44 +05:30
tsconfig.json console: migrate cypress tests to TypeScript (#4550) 2020-05-27 14:56:29 +05:30

Test

Running all tests to generate coverage

  1. Set the TEST_MODE field in cypress.json to cli
  2. Run the command npm run test from the console directory to run all the tests.

You can also run the complete tests from the cypress electron app:

  1. Set the TEST_MODE field in cypress.json to cli
  2. Run npm run cypress from the console directory.
  3. Click on test_complete.js

Running tests individually

Tests are modularized into following modules:

  • API-Explorer
  • Data
    • Migration Mode
    • Create Table
    • Insert Browse
    • Modify Table
    • Table Relationships
    • Table and View Permissions
    • Views

To run the tests for the modules individually (say for create table),

  • Go to the cypress.json and set the env > TEST_MODE variable to ui.
{
    "env": {
        "TEST_MODE": "ui"
    }
}
  • Run the command npm run cypress and click on create-table > test.js