Skip to content

Commit

Permalink
better test skipping.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jun 2, 2024
1 parent 8e86018 commit 7794fa6
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 20 deletions.
3 changes: 1 addition & 2 deletions js/e2e/src/aetna_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("Aetna Login Flow", async ({page}) => {
test.skip()
test.skip("Aetna Login Flow", async ({page}) => {
//get the Cerner Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('ac8308d1-90de-4994-bb3d-fe404832714c')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
3 changes: 1 addition & 2 deletions js/e2e/src/allscripts_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("Allscripts Login Flow", async ({page}) => {
test.skip()
test.skip("Allscripts Login Flow", async ({page}) => {
//get the Allscripts - Veradigm Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('7682675b-8247-4fda-b2cd-048bfeafc8af')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
4 changes: 1 addition & 3 deletions js/e2e/src/athena_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("Athena Login Flow", async ({page}) => {
test.skip()

test.skip("Athena Login Flow", async ({page}) => {
//get the Cerner Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('950e9092-8ce7-4926-ad87-64616f00cb4c')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
4 changes: 1 addition & 3 deletions js/e2e/src/careevolution_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("CareEvolution Login Flow", async ({page}) => {
test.skip()

test.skip("CareEvolution Login Flow", async ({page}) => {
//get the CareEvolution Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('8b47cf7b-330e-4ede-9967-4caa7be623aa')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
3 changes: 1 addition & 2 deletions js/e2e/src/cerner_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("Cerner Login Flow", async ({page}) => {
test.skip()
test.skip("Cerner Login Flow", async ({page}) => {
//get the Cerner Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('3290e5d7-978e-42ad-b661-1cf8a01a989c')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
4 changes: 1 addition & 3 deletions js/e2e/src/cigna_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("Cigna Login Flow", async ({page}) => {
test.skip()

test.skip("Cigna Login Flow", async ({page}) => {
//get the Cerner Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('6c0454af-1631-4c4d-905d-5710439df983')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
3 changes: 1 addition & 2 deletions js/e2e/src/eclinicalworks_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("eClinicalWorks-Healow Login Flow", async ({page}) => {

test.skip("eClinicalWorks-Healow Login Flow", async ({page}) => {
//get the eClinicalWorks Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('f0a8629a-076c-4f78-b41a-7fc6ae81fa4d')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
4 changes: 1 addition & 3 deletions js/e2e/src/epic_legacy_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test("Epic OAuth2 Legacy Login Flow", async ({page}) => {
test.skip()

test.skip("Epic OAuth2 Legacy Login Flow", async ({page}) => {
//get the Epic Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('fc94bfc7-684d-4e4d-aa6e-ceec01c21c81')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)
Expand Down
35 changes: 35 additions & 0 deletions js/e2e/src/kaiser_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import { test, expect } from "@playwright/test";
import {getEndpointDefinition} from '../utils';
import {generateSourceAuthorizeUrl} from '../../src/connect/authorization-url';

test.skip("Kaiser Login Flow", async ({page}) => {
//get the Cerner Sandbox endpoint definition
let endpointDefinition = await getEndpointDefinition('9d0fa28a-0c5b-4065-9ee6-284ec9577a57')
let authorizeData = await generateSourceAuthorizeUrl(endpointDefinition)

// authorizeData.sourceState
console.log(authorizeData.url.toString())

// Start login flow by clicking on button with text "Login to MyChart"
await page.goto(authorizeData.url.toString());

// We are on login page
await page.waitForSelector("text=Sign in");
await expect(page).toHaveTitle("Sign in ");
await page.click("label[for='username']", { force: true });
await page.keyboard.type("Pvaluser1");
await page.click("label[for='password']", { force: true });
await page.keyboard.type("V@lidation1");
await page.click("button[type='submit']");

// We have logged in
await page.waitForSelector("text=Please Be Aware");
await expect(page).toHaveTitle("Consent Management");
await page.click("input[name='subject']");
await page.click("label[for='agreement']");
await page.locator('div.accept-btn').locator('button[type="button"]').click();


// If successful, Fasten Lighthouse page should now be visible
await page.waitForSelector("text=Your account has been securely connected to FASTEN.");
});

0 comments on commit 7794fa6

Please sign in to comment.