-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4526 from dfe-analytical-services/dev
Merge Dev into Master
- Loading branch information
Showing
22 changed files
with
277 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.idea/ | ||
.next/ | ||
build/ | ||
dist/ | ||
coverage/ | ||
node_modules/ | ||
*.min.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.idea/ | ||
.next/ | ||
build/ | ||
dist/ | ||
coverage/ | ||
node_modules/ | ||
*.min.css | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.next | ||
build/ | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
*.min.css | ||
# Artifacts can leak between jobs on self-hosted runners | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
PUBLIC_URL=http://localhost:3000 # URL of the public frontend | ||
PUBLIC_URL=http://localhost:3000 # URL of the public frontend | ||
ADMIN_URL=https://localhost:5021 # URL for the Admin frontend | ||
ADMIN_EMAIL=ADMIN_EMAIL # BAU1 user email | ||
ADMIN_PASSWORD=ADMIN_PASSWORD # BAU1 user password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Locator, Page } from '@playwright/test'; | ||
import environment from '../../utils/env'; | ||
|
||
export default class AzureLoginPage { | ||
readonly page: Page; | ||
readonly emailAddress: Locator; | ||
readonly nextButton: Locator; | ||
readonly password: Locator; | ||
readonly signInButton: Locator; | ||
readonly noButton: Locator; | ||
|
||
constructor(page: Page) { | ||
this.page = page; | ||
// Locators | ||
this.emailAddress = page.locator( | ||
'input[placeholder="Email, phone, or Skype"]', | ||
); | ||
this.nextButton = page.locator('input[type="submit"]'); | ||
this.password = page.locator('input[type="password"]'); | ||
this.signInButton = page.locator('input[id="idSIButton9"]'); | ||
this.noButton = page.locator('input[id="idBtn_Back"]'); | ||
} | ||
|
||
async doSignIn() { | ||
await this.emailAddress.fill(environment.ADMIN_EMAIL); | ||
await this.nextButton.click(); | ||
await this.password.waitFor({ state: 'visible' }); | ||
await this.password.fill(environment.ADMIN_PASSWORD); | ||
await this.signInButton.click(); | ||
await this.noButton.waitFor({ state: 'visible' }); | ||
await this.noButton.click(); | ||
} | ||
} |
Oops, something went wrong.