-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LGA-2798: Announce we’re calling from CLA (#130)
* WIP: LGA-2798 basic outline and structure for yes announce call path * WIP: Updating docker-compose file to use correct development branches * WIP: updated cla_backend git commit number to reflect correct branch * LGA-2798 new steps for selecting values again announce call options * LGA-2798 New steps to capture users reference number from contact us jounery. New step to search for a saved case. * Added feature definitions for additional contact us journeys * Updated search and save function to be named 'I search for and select a case using my saved reference number' * Added tests to assert if the call announce warning is present * WIP: removing imports for A11Y to prevent pre-commit lint issues * LGA-2798 updated steps with new input values checks. Fixed step call issue. Changed H1 checks on confirm page. * Added additional steps to the 'Call someone else instead of me' test * Renamed tag on new features * Reverted docker-compose commit tags * Reverted changes to environment.py * Reverted unintentional indentation * LGA-2798 updating I'll call CLA to I will call you * LGA-2798 user selects yes to announce call options * Added namespace to orb.yml * Updated orb-tools * Revert "Updated orb-tools" This reverts commit 376985a. --------- Co-authored-by: psweeting <[email protected]>
- Loading branch information
1 parent
b441d6c
commit a94fa97
Showing
9 changed files
with
156 additions
and
21 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
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,30 @@ | ||
import logging | ||
from behave import step | ||
from selenium.webdriver.support.ui import WebDriverWait | ||
from selenium.webdriver.support import expected_conditions as EC | ||
from selenium.common.exceptions import TimeoutException, NoSuchElementException | ||
from selenium.webdriver.common.by import By | ||
|
||
CALL_ANNOUNCE_WARNING_ID = "cla-call-announce-warning" | ||
|
||
|
||
@step("The 'do not announce the call is from CLA' warning is present") | ||
def step_impl_cla_announce_warning_present(context): | ||
try: | ||
element = context.helperfunc.find_by_id(CALL_ANNOUNCE_WARNING_ID) | ||
except TimeoutException: | ||
logging.error("The call announce warning element is not present.") | ||
assert element is not None | ||
|
||
|
||
@step("the 'do not announce the call is from CLA' warning is not present") | ||
def step_impl_cla_announce_warning_not_present(context): | ||
try: | ||
WebDriverWait(context.helperfunc.driver(), 5).until( | ||
EC.invisibility_of_element((By.ID, CALL_ANNOUNCE_WARNING_ID)) | ||
) | ||
except TimeoutException: | ||
logging.error("The call announce warning element is present.") | ||
except NoSuchElementException: | ||
# Pass because this is expected result. | ||
pass |
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,5 +1,6 @@ | ||
version: 2.1 | ||
description: The end-to-end test suite for use in CLA app pipelines | ||
namespace: cla-end-to-end-tests | ||
orbs: | ||
aws-cli: circleci/[email protected] | ||
aws-ecr: circleci/[email protected] # this orb doesn't support OIDC v2, so we use aws-cli to authenticate | ||
|
@@ -80,4 +81,4 @@ commands: | |
when: always | ||
- store_artifacts: | ||
path: /tmp/end-to-end-data | ||
destination: data | ||
destination: data |