-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(EMS-3574): problem with service - content iterations (#2741)
- Loading branch information
Showing
15 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
e2e-tests/commands/shared-commands/assertions/assert-contact-details-content.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { emailLink, emailPrefix } from '../../../pages/shared'; | ||
import contactDetails from '../../../partials/contactDetails'; | ||
import { CONTACT_DETAILS } from '../../../content-strings'; | ||
|
||
const { PHONE, EMAIL, OPENING_TIMES } = CONTACT_DETAILS; | ||
|
||
/** | ||
* assertContactDetailsContent | ||
* Check contact details content | ||
*/ | ||
const assertContactDetailsContent = () => { | ||
cy.checkText(emailPrefix(), `${EMAIL.PREFIX}:`); | ||
|
||
cy.checkLink(emailLink(), EMAIL.VALUE, EMAIL.TEXT); | ||
|
||
cy.checkText(contactDetails.phone(), `${PHONE.PREFIX}: ${PHONE.VALUE}`); | ||
cy.checkText(contactDetails.openingTimes(), OPENING_TIMES); | ||
}; | ||
|
||
export default assertContactDetailsContent; |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ export const UKEF_CONTACT_DETAILS = { | |
CREDIT_INSURANCE_SUPPORT: '[email protected]', | ||
UNDERWRITING: '[email protected]', | ||
}, | ||
PHONE: '+44 (0)207 271 8010', | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const contactDetails = { | ||
phone: () => cy.get('[data-cy="contact-details-phone"]'), | ||
openingTimes: () => cy.get('[data-cy="contact-details-opening-times"]'), | ||
}; | ||
|
||
export default contactDetails; |
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ export const UKEF_CONTACT_DETAILS = { | |
CREDIT_INSURANCE_SUPPORT: '[email protected]', | ||
UNDERWRITING: '[email protected]', | ||
}, | ||
PHONE: '+44 (0)207 271 8010', | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% set contactDetails = CONTENT_STRINGS.CONTACT_DETAILS %} | ||
|
||
{% set EMAIL = contactDetails.EMAIL %} | ||
{% set PHONE = contactDetails.PHONE %} | ||
{% set OPENING_TIMES = contactDetails.OPENING_TIMES %} | ||
|
||
<p data-cy="contact-details-email"> | ||
<span data-cy="email-prefix">{{ EMAIL.PREFIX }}: </span> | ||
<a class="govuk-link" href="{{ EMAIL.VALUE }}" data-cy="email-link">{{ EMAIL.TEXT }}</a> | ||
</p> | ||
|
||
<p data-cy="contact-details-phone">{{ PHONE.PREFIX }}: {{ PHONE.VALUE }}</p> | ||
|
||
<p data-cy="contact-details-opening-times">{{ OPENING_TIMES }}</p> |
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