-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
157 additions
and
16 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
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,26 @@ | ||
export const ADDRESS = [ | ||
{ | ||
uprn: "10022812929", | ||
subBuildingName: "FLAT 5", | ||
buildingName: "WEST LEA", | ||
buildingNumber: "16", | ||
dependentStreetName: "KINGS PARK", | ||
streetName: "HIGH STREET", | ||
doubleDependentAddressLocality: "EREWASH", | ||
dependentAddressLocality: "LONG EATON", | ||
addressLocality: "GREAT MISSENDEN", | ||
postalCode: "HP16 0AL", | ||
addressCountry: "GB", | ||
validFrom: "2022-01-01", | ||
}, | ||
{ | ||
uprn: "10002345923", | ||
buildingName: "SAWLEY MARINA", | ||
streetName: "INGWORTH ROAD", | ||
dependentAddressLocality: "LONG EATON", | ||
addressLocality: "NOTTINGHAM", | ||
postalCode: "BH12 1JY", | ||
addressCountry: "GB", | ||
validUntil: "2022-01-01", | ||
}, | ||
] |
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,7 @@ | ||
export const PASSPORT = [ | ||
{ | ||
documentNumber: "1223456", | ||
icaoIssuerCode: "GBR", | ||
expiryDate: "2032-02-02", | ||
}, | ||
] |
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,14 +1,16 @@ | ||
Feature: Authentication | ||
Scenario: User successfully login without 2FA | ||
Given the user comes from the stub relying party with options: "2fa-off" | ||
Scenario: User successfully login | ||
Given the user comes from the stub relying party with default options | ||
Then the user is taken to the "Create your GOV.UK One Login or sign in" page | ||
When the user selects sign in | ||
Then the user is taken to the "Enter your email" page | ||
When user enters "TEST_USER_EMAIL" email address | ||
Then the user is taken to the "Enter your password" page | ||
When the user enters their password | ||
Then the user is taken to the "Check your phone" page | ||
When the user enters the six digit security code from their phone | ||
Then the user is returned to the service | ||
And the RP receives the expected user info | ||
And the RP receives the expected auth only user info | ||
And the user logs out | ||
When the simulator is sent the configuration | ||
Then the simulator returns the expected user info | ||
Then the simulator returns the expected auth only user info |
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,18 @@ | ||
Feature: Identity | ||
Scenario: User successfully gets identity response | ||
Given the user comes from the stub relying party with options: "loc-P2" | ||
Then the user is taken to the "Create your GOV.UK One Login or sign in" page | ||
When the user selects sign in | ||
Then the user is taken to the "Enter your email" page | ||
When user enters "TEST_USER_EMAIL" email address | ||
Then the user is taken to the "Enter your password" page | ||
When the user enters their password | ||
Then the user is taken to the "Check your phone" page | ||
When the user enters the six digit security code from their phone | ||
Then the user is taken to the "IPV stub" page | ||
When the user clicks the continue button | ||
Then the user is returned to the service via processing identity | ||
And the RP receives the expected identity user info | ||
And the user logs out | ||
When the simulator is sent the identity configuration | ||
Then the simulator returns the expected identity user info |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const BasePage = require("./base-page.js"); | ||
const { By } = require("selenium-webdriver"); | ||
|
||
module.exports = class CheckYourPhonePage extends BasePage { | ||
constructor(page) { | ||
super(page); | ||
} | ||
|
||
phoneCodeField = By.id("code"); | ||
|
||
enterCorrectPhoneCodeAndContinue = async () => { | ||
await this.enterPhoneCode(process.env.TEST_USER_PHONE_VERIFY_CODE ?? ""); | ||
await this.findAndClickContinue(); | ||
} | ||
|
||
enterPhoneCode = async (phoneCode) => { | ||
await this.clearFieldAndEnter(this.phoneCodeField, phoneCode); | ||
} | ||
} |
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