* Set baseUrl for Cypress tests. * Fixed login form for tests. * Added fixture data for initial admin credentials. * First e2e test. * Fixed a typo in a comment. * Using an input of type submit like the login previously had was fine. * Added a check to ensure user is redirected to the home page. * Forgot to commit adding @testing-library/cypress * Renamed and move login flow under loginFlows in integrations. * Added testing library to support files so it does not need to be imported into every test explicitly by the test writer. * Added some more Cypress related files that will be required for testing going forward. * Took onboarding into account when checking the URL post login.
25 lines
838 B
JavaScript
25 lines
838 B
JavaScript
// ***********************************************
|
|
// This example commands.js shows you how to
|
|
// create various custom commands and overwrite
|
|
// existing commands.
|
|
//
|
|
// For more comprehensive examples of custom
|
|
// commands please read more here:
|
|
// https://on.cypress.io/custom-commands
|
|
// ***********************************************
|
|
//
|
|
//
|
|
// -- This is a parent command --
|
|
// Cypress.Commands.add("login", (email, password) => { ... })
|
|
//
|
|
//
|
|
// -- This is a child command --
|
|
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
|
|
//
|
|
//
|
|
// -- This is a dual command --
|
|
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
//
|
|
//
|
|
// -- This will overwrite an existing command --
|
|
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
|