mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
d46050c974
* use user-folder override consistently everywhere, including for the `.cache` folder * use consistent config for e2e tesing, skipping config loading from env and config files * simplify all the cypress commands, and run all e2e tests on master * add tests for skipping owner setup * add todos Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
24 lines
611 B
TypeScript
24 lines
611 B
TypeScript
import {DEFAULT_USER_EMAIL, DEFAULT_USER_PASSWORD} from "../constants";
|
|
import {randFirstName, randLastName} from "@ngneat/falso";
|
|
|
|
const username = DEFAULT_USER_EMAIL;
|
|
const password = DEFAULT_USER_PASSWORD;
|
|
const firstName = randFirstName();
|
|
const lastName = randLastName();
|
|
|
|
describe('Authentication', () => {
|
|
it('should setup owner', () => {
|
|
cy.signup(username, firstName, lastName, password);
|
|
});
|
|
|
|
it('should sign user in', () => {
|
|
cy.on('uncaught:exception', (err, runnable) => {
|
|
expect(err.message).to.include('Not logged in');
|
|
|
|
return false;
|
|
})
|
|
|
|
cy.signin(username, password);
|
|
});
|
|
});
|