Skip to content

Instantly share code, notes, and snippets.

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

Nikolas Davis ndavis

🏠
Working from home
View GitHub Profile
@ndavis
ndavis / oktaLogin.js
Created November 7, 2019 03:38
Cypress Custom Command for Okta Login
Cypress.Commands.add('loginOkta', () => {
const optionsSessionToken = {
method: 'POST',
url: Cypress.env('session_token_url'),
body: {
username: Cypress.env('username'),
password: Cypress.env('password'),
options: {
warnBeforePasswordExpired: 'true'
}