mirror of https://github.com/boxyhq/jackson.git
wip
This commit is contained in:
parent
134f9842aa
commit
630250111e
|
@ -0,0 +1,27 @@
|
|||
// Create SAML connection
|
||||
// Initate OAuth 2.0 flow
|
||||
// Login with SAML
|
||||
// Verify profile page
|
||||
// Delete SAML connection
|
||||
|
||||
import { expect, test } from '@playwright/test';
|
||||
|
||||
import jackson from '@lib/jackson';
|
||||
|
||||
test.describe('Single connection', () => {
|
||||
test('OAuth2 wrapper + SAML provider', async ({ page }) => {
|
||||
const { connectionAPIController } = await jackson();
|
||||
|
||||
await connectionAPIController.createSAMLConnection({
|
||||
defaultRedirectUrl: 'http://localhost:5225/api/oauth/saml',
|
||||
redirectUrl: '["http://localhost:5225"]',
|
||||
tenant: 'boxyhq',
|
||||
product: 'jackson',
|
||||
metadataUrl: 'https://mocksaml.com/api/saml/metadata',
|
||||
rawMetadata: '',
|
||||
});
|
||||
|
||||
await page.goto('/admin/auth/login');
|
||||
await page.getByTestId('sso-login-button').click();
|
||||
});
|
||||
});
|
|
@ -1034,7 +1034,7 @@
|
|||
},
|
||||
"node_modules/@cspotcode/source-map-support": {
|
||||
"version": "0.8.1",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jridgewell/trace-mapping": "0.3.9"
|
||||
|
@ -1045,7 +1045,7 @@
|
|||
},
|
||||
"node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": {
|
||||
"version": "0.3.9",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jridgewell/resolve-uri": "^3.0.3",
|
||||
|
@ -1199,7 +1199,7 @@
|
|||
},
|
||||
"node_modules/@jridgewell/resolve-uri": {
|
||||
"version": "3.1.0",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
|
@ -1207,7 +1207,7 @@
|
|||
},
|
||||
"node_modules/@jridgewell/sourcemap-codec": {
|
||||
"version": "1.4.15",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@jridgewell/trace-mapping": {
|
||||
|
@ -2874,22 +2874,22 @@
|
|||
},
|
||||
"node_modules/@tsconfig/node10": {
|
||||
"version": "1.0.9",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@tsconfig/node12": {
|
||||
"version": "1.0.11",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@tsconfig/node14": {
|
||||
"version": "1.0.3",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@tsconfig/node16": {
|
||||
"version": "1.0.4",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@tufjs/canonical-json": {
|
||||
|
@ -2992,7 +2992,7 @@
|
|||
},
|
||||
"node_modules/acorn": {
|
||||
"version": "8.9.0",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"acorn": "bin/acorn"
|
||||
|
@ -3003,7 +3003,7 @@
|
|||
},
|
||||
"node_modules/acorn-walk": {
|
||||
"version": "8.2.0",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.4.0"
|
||||
|
@ -3158,7 +3158,7 @@
|
|||
},
|
||||
"node_modules/arg": {
|
||||
"version": "4.1.3",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/array-buffer-byte-length": {
|
||||
|
@ -3859,7 +3859,7 @@
|
|||
},
|
||||
"node_modules/create-require": {
|
||||
"version": "1.1.1",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/cross-env": {
|
||||
|
@ -5030,7 +5030,7 @@
|
|||
},
|
||||
"node_modules/ip": {
|
||||
"version": "2.0.0",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/is-actual-promise": {
|
||||
|
@ -5626,7 +5626,7 @@
|
|||
},
|
||||
"node_modules/make-error": {
|
||||
"version": "1.3.6",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/make-fetch-happen": {
|
||||
|
@ -6999,20 +6999,6 @@
|
|||
"node": ">=0.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-dom": {
|
||||
"version": "18.2.0",
|
||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
||||
"integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==",
|
||||
"dev": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"loose-envify": "^1.1.0",
|
||||
"scheduler": "^0.23.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/react-element-to-jsx-string": {
|
||||
"version": "15.0.0",
|
||||
"resolved": "https://registry.npmjs.org/react-element-to-jsx-string/-/react-element-to-jsx-string-15.0.0.tgz",
|
||||
|
@ -7432,7 +7418,7 @@
|
|||
},
|
||||
"node_modules/smart-buffer": {
|
||||
"version": "4.2.0",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 6.0.0",
|
||||
|
@ -7441,7 +7427,7 @@
|
|||
},
|
||||
"node_modules/socks": {
|
||||
"version": "2.7.1",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ip": "^2.0.0",
|
||||
|
@ -8003,7 +7989,7 @@
|
|||
},
|
||||
"node_modules/ts-node": {
|
||||
"version": "10.9.1",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@cspotcode/source-map-support": "^0.8.0",
|
||||
|
@ -8045,7 +8031,7 @@
|
|||
},
|
||||
"node_modules/ts-node/node_modules/diff": {
|
||||
"version": "4.0.2",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "BSD-3-Clause",
|
||||
"engines": {
|
||||
"node": ">=0.3.1"
|
||||
|
@ -8391,7 +8377,7 @@
|
|||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.2.2",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
|
@ -8460,7 +8446,7 @@
|
|||
},
|
||||
"node_modules/v8-compile-cache-lib": {
|
||||
"version": "3.0.1",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/v8-to-istanbul": {
|
||||
|
@ -8867,7 +8853,7 @@
|
|||
},
|
||||
"node_modules/yn": {
|
||||
"version": "3.1.1",
|
||||
"devOptional": true,
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
|
|
|
@ -8,7 +8,7 @@ const config: PlaywrightTestConfig = {
|
|||
// Timeout per test
|
||||
timeout: 30 * 1000,
|
||||
// Test directory
|
||||
testDir: path.join(__dirname, 'e2e'),
|
||||
testDir: path.join(__dirname, 'e2e/auth'),
|
||||
// If a test fails, retry it additional 2 times
|
||||
retries: 0,
|
||||
// Artifacts folder where screenshots, videos, and traces are stored.
|
||||
|
|
Loading…
Reference in New Issue