mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-26 03:17:40 +08:00
* change login flow to handle admin secret persistence * handle headers init state * add tooltip for remember-me * remove log, make label clickable * fix a closure scope bug * handle login verification at route level * update Login.js * refactor * remove extra file * refactor * add id to tooltips * remove adminsecretlabel + update admin secret storage flow * fix heartIcon close handling * . * fix admin secret setting * fix urlPrefix * add admin secret header if not present * update jwt analyzer icon * persist if admin secret header has already been added * set cli console mode as constant * handle CLI admin secret errors * make separate logout page * fix typos * fix typos * fix typos * fix typos * fix cli error * fix login page path
Test
Running all tests to generate coverage
- Set the
TEST_MODEfield incypress.jsontocli - Run the command
npm run testfrom theconsoledirectory to run all the tests.
You can also run the complete tests from the cypress electron app:
- Set the
TEST_MODEfield incypress.jsontocli - Run
npm run cypressfrom theconsoledirectory. - 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.jsonand set theenv > TEST_MODEvariable toui.
{
"env": {
"TEST_MODE": "ui"
}
}
- Run the command
npm run cypressand click oncreate-table > test.js