-
Notifications
You must be signed in to change notification settings - Fork 4
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 #1304 from hmcts/fix-nightly-tests
remove deprecated defineSupportCode
- Loading branch information
Showing
33 changed files
with
1,863 additions
and
1,412 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 |
---|---|---|
|
@@ -191,5 +191,5 @@ withPipeline(type, product, component) { | |
reportName : 'AAT Functional Test' | ||
]) | ||
} | ||
|
||
} |
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
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,8 +1,7 @@ | ||
@crossbrowser | ||
Feature: view organisation workflow | ||
@Flaky | ||
Scenario: view organisation workflow | ||
When I navigate to manage organisation Url | ||
Given I am logged into manage organisation with ManageOrg user details | ||
Given I am logged into Townley Services Org | ||
Then I should be redirected to manage organisation dashboard page | ||
Then I should be on display the name and address details of organisation |
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
46 changes: 22 additions & 24 deletions
46
test/e2e/features/step_definitions/acceptTermsAndConditions.steps.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,34 +1,32 @@ | ||
const { Then, When } = require('@cucumber/cucumber'); | ||
|
||
const acceptTermsAndConditionsPage = require('../pageObjects/termsAndConditionsConfirmPage'); | ||
const HeaderPage = require('../pageObjects/headerPage'); | ||
|
||
const { config } = require('../../config/common.conf'); | ||
const browserWaits = require('../../support/customWaits'); | ||
|
||
const { defineSupportCode } = require('cucumber'); | ||
|
||
defineSupportCode(function ({ And, But, Given, Then, When }) { | ||
const headerPage = new HeaderPage(); | ||
Then('I am on Accept Terms and Conditions page', async function () { | ||
const world = this; | ||
if (await acceptTermsAndConditionsPage.isFeatureToggleEnabled()){ | ||
await browserWaits.waitForElement(acceptTermsAndConditionsPage.accepttermsAndConditionsContainer); | ||
expect(await acceptTermsAndConditionsPage.amOnPage()).to.be.true; | ||
} else { | ||
world.attach('Accept Terms and Conditions feature disabled in config. ../../config/common.conf.js. Validating Home page displayed'); | ||
await headerPage.waitForPrimaryNavigationToDisplay(); | ||
} | ||
}); | ||
const headerPage = new HeaderPage(); | ||
Then('I am on Accept Terms and Conditions page', async function () { | ||
const world = this; | ||
if (await acceptTermsAndConditionsPage.isFeatureToggleEnabled()){ | ||
await browserWaits.waitForElement(acceptTermsAndConditionsPage.accepttermsAndConditionsContainer); | ||
expect(await acceptTermsAndConditionsPage.amOnPage()).to.be.true; | ||
} else { | ||
world.attach('Accept Terms and Conditions feature disabled in config. ../../config/common.conf.js. Validating Home page displayed'); | ||
await headerPage.waitForPrimaryNavigationToDisplay(); | ||
} | ||
}); | ||
|
||
When('I click Confirm in Accept Terms and Conditions page', async function () { | ||
const world = this; | ||
if (await acceptTermsAndConditionsPage.isFeatureToggleEnabled()) { | ||
await browserWaits.waitForElement(acceptTermsAndConditionsPage.accepttermsAndConditionsContainer); | ||
await acceptTermsAndConditionsPage.acceptTremsAndConditions(); | ||
await headerPage.waitForPrimaryNavigationToDisplay(); | ||
} else { | ||
world.attach('Accept Terms and Conditions feature disabled in config. ../../config/common.conf.js.Validating Home page displayed'); | ||
await headerPage.waitForPrimaryNavigationToDisplay(); | ||
} | ||
}); | ||
When('I click Confirm in Accept Terms and Conditions page', async function () { | ||
const world = this; | ||
if (await acceptTermsAndConditionsPage.isFeatureToggleEnabled()) { | ||
await browserWaits.waitForElement(acceptTermsAndConditionsPage.accepttermsAndConditionsContainer); | ||
await acceptTermsAndConditionsPage.acceptTremsAndConditions(); | ||
await headerPage.waitForPrimaryNavigationToDisplay(); | ||
} else { | ||
world.attach('Accept Terms and Conditions feature disabled in config. ../../config/common.conf.js.Validating Home page displayed'); | ||
await headerPage.waitForPrimaryNavigationToDisplay(); | ||
} | ||
}); |
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
Oops, something went wrong.