Skip to content

Instantly share code, notes, and snippets.

View JamieBuckell's full-sized avatar
🏠
Working from home

Jamie Buckell JamieBuckell

🏠
Working from home
View GitHub Profile
@JamieBuckell
JamieBuckell / command.js
Last active May 13, 2019 20:36
Login with speed
const states = require('../states/admin_logins.json');
Cypress.Commands.add('login', () => {
cy.request({
method: 'POST',
url: 'http://localhost:5000/api/1.0/user/auth?tenant=greatrun',
body: {
emailAddress: states.working.email,
password: states.working.password,
}