Skip to content

Commit 36ede7f

Browse files
authored
Remove test for cognito domain (#102)
Actually the cognito login is served on the app's domain, so that check fails on PodSpaces for instance.
1 parent 999fe1c commit 36ede7f

File tree

1 file changed

+0
-8
lines changed
  • packages/internal-playwright-helpers/src/pages

1 file changed

+0
-8
lines changed

packages/internal-playwright-helpers/src/pages/cognito.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,11 @@ import { Page } from "@playwright/test";
2828
export class CognitoPage {
2929
page: Page;
3030

31-
static COGNITO_DOMAIN = "amazoncognito.com ";
32-
3331
constructor(page: Page) {
3432
this.page = page;
3533
}
3634

3735
async login(username: string, password: string) {
38-
const pageUrl = new URL(this.page.url());
39-
if(!pageUrl.hostname.includes(CognitoPage.COGNITO_DOMAIN)) {
40-
throw new Error(
41-
`Expected domain ${CognitoPage.COGNITO_DOMAIN} for login, found ${pageUrl.href}`
42-
);
43-
}
4436
await this.page.fill(".visible-lg [type=text]", username);
4537
await this.page.fill(".visible-lg [type=password]", password);
4638
await Promise.all([

0 commit comments

Comments
 (0)