caccl-authorizer
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "caccl-authorizer", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Acquires Canvas tokens through via OAuth, stores refresh tokens, and refreshes access tokens when they expire.", | ||
@@ -34,3 +34,3 @@ "main": "index.js", | ||
"caccl-canvas-partial-simulator": "^1.0.9", | ||
"dce-selenium": "^1.0.16", | ||
"dce-selenium": "^1.0.18", | ||
"eslint": "^5.13.0", | ||
@@ -37,0 +37,0 @@ "eslint-config-airbnb": "^17.1.0", |
@@ -10,5 +10,5 @@ { | ||
"globals": { | ||
"itd": false, | ||
"itS": false, | ||
"driver": false | ||
} | ||
} |
require('dce-selenium'); | ||
itd('App certs accepted', async function (driver) { | ||
itS('App certs accepted', async function (driver) { | ||
driver.log('use "npm run accept" if certificates are failing'); | ||
@@ -8,5 +8,5 @@ await driver.visit('https://localhost:8089/verifycert'); | ||
itd('Canvas partial simulator certs accepted', async function (driver) { | ||
itS('Canvas partial simulator certs accepted', async function (driver) { | ||
driver.log('use "npm run accept" if certificates are failing'); | ||
await driver.visit('https://localhost:8089/verifycert'); | ||
}); |
require('dce-selenium'); | ||
itd('Invalid Client Id - Rejects launch request', async function (driver) { | ||
itS('Invalid Client Id - Rejects launch request', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -5,0 +5,0 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); |
require('dce-selenium'); | ||
itd('Invalid Client Id and Secret - Rejects launch request', async function (driver) { | ||
itS('Invalid Client Id and Secret - Rejects launch request', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -5,0 +5,0 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); |
require('dce-selenium'); | ||
itd('Invalid Client Secret - Rejects launch request', async function (driver) { | ||
itS('Invalid Client Secret - Rejects launch request', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -5,0 +5,0 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); |
require('dce-selenium'); | ||
itd('Valid - Custom Launch Path - Accepts valid launch requests', async function (driver) { | ||
itS('Valid - Custom Launch Path - Accepts valid launch requests', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -5,0 +5,0 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); |
require('dce-selenium'); | ||
itd('Valid - Custom Launch Path - Accepts valid launch requests', async function (driver) { | ||
itS('Valid - Custom Launch Path - Accepts valid launch requests', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -5,0 +5,0 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); |
require('dce-selenium'); | ||
itd('Valid - Launch Optional - Accepts valid launch requests without launch', async function (driver) { | ||
itS('Valid - Launch Optional - Accepts valid launch requests without launch', async function (driver) { | ||
// Visit /launch and get redirect to auth page | ||
@@ -20,3 +20,3 @@ await driver.visit( | ||
itd('Valid - Launch Optional - Refreshes authorization on successive launches', async function (driver) { | ||
itS('Valid - Launch Optional - Refreshes authorization on successive launches', async function (driver) { | ||
// --- Initial launch --- | ||
@@ -50,3 +50,3 @@ driver.log('Initial launch:'); | ||
itd('Valid - Launch Optional - Accepts valid launch requests with launch', async function (driver) { | ||
itS('Valid - Launch Optional - Accepts valid launch requests with launch', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -53,0 +53,0 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); |
require('dce-selenium'); | ||
itd('Valid - Launch Required - Rejects valid launch requests without launch', async function (driver) { | ||
itS('Valid - Launch Required - Rejects valid launch requests without launch', async function (driver) { | ||
// Visit /launch and get redirect to auth page | ||
@@ -13,3 +13,3 @@ await driver.visit('https://localhost:8089/launch'); | ||
itd('Valid - Launch Required - Accepts valid launch requests with launch', async function (driver) { | ||
itS('Valid - Launch Required - Accepts valid launch requests with launch', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -16,0 +16,0 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); |
require('dce-selenium'); | ||
itd('Valid - onLogin - Calls onLogin upon login', async function (driver) { | ||
itS('Valid - onLogin - Calls onLogin upon login', async function (driver) { | ||
// Successfully launch the app | ||
@@ -5,0 +5,0 @@ |
require('dce-selenium'); | ||
itd('Valid - Refresh on Expiry - Refreshes on expiration', async function (driver) { | ||
itS('Valid - Refresh on Expiry - Refreshes on expiration', async function (driver) { | ||
// Successfully launch the app | ||
@@ -5,0 +5,0 @@ |
@@ -11,3 +11,3 @@ const API = require('caccl-api'); | ||
itd('Valid - Sim Launch - Does not simulate launch if launch already occurred', async function (driver) { | ||
itS('Valid - Sim Launch - Does not simulate launch if launch already occurred', async function (driver) { | ||
// Pretend that the app was launched | ||
@@ -32,3 +32,3 @@ await driver.checkForSuccess('https://localhost:8089/addlaunchinfo'); | ||
itd('Valid - Sim Launch - Simulates launch with course picker', async function (driver) { | ||
itS('Valid - Sim Launch - Simulates launch with course picker', async function (driver) { | ||
// Visit /launch and get redirect to auth page | ||
@@ -35,0 +35,0 @@ await driver.visit( |
79832