mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 23:54:07 -08:00
24 lines
617 B
TypeScript
24 lines
617 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 flow', () => {
|
||
|
it('should sign user up', () => {
|
||
|
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);
|
||
|
});
|
||
|
});
|