Skip to content

Commit

Permalink
TE-1232 / 13.0-U6 / Removed 2FA UI test since API call are not suppor…
Browse files Browse the repository at this point in the history
…ted without API key. (#9151)

* Removed 2FA UI test since API call are not supported without API key.

* Changed BOX and Google could test to avoid common point of failures
  • Loading branch information
ericbsd authored Nov 6, 2023
1 parent eaaa61a commit a998a20
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 158 deletions.
5 changes: 3 additions & 2 deletions tests/bdd/core/test_NAS_T1128.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ def click_proceed_then_enter_the_login_user_name_and_password(driver, user_name,
@then('click Authorize and then click Grant Access to Box')
def click_authorize_and_then_click_grant_access_to_box(driver):
"""click Authorize and then click Grant Access to Box."""
assert wait_on_element(driver, 5, '//button[@id="consent_accept_button"]', 'clickable')
driver.find_element_by_xpath('//button[@id="consent_accept_button"]').click()
assert wait_on_element(driver, 5, xpaths.authorization.box_Auth_Message)
assert wait_on_element(driver, 5, xpaths.authorization.Grant_Access_To_Box_Button, 'clickable')
driver.find_element_by_xpath(xpaths.authorization.Grant_Access_To_Box_Button).click()
assert rsc.wait_For_The_Tab_To_Close(driver) is True
driver.switch_to.window(driver.window_handles[0])

Expand Down
2 changes: 1 addition & 1 deletion tests/bdd/core/test_NAS_T1141.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,9 @@ def click_on_folder1_then_click_on_the_test_folder(driver, folder1):
action = ActionChains(driver)
action.double_click(driver.find_element_by_xpath(f'//div[@data-tooltip="Google Drive Folder: {folder1}"]')).perform()
assert wait_on_element(driver, 7, f'//div[@data-tooltip="{folder1}" and @role="button"]')
time.sleep(1)
assert wait_on_element(driver, 7, '//div[@data-tooltip="Google Drive Folder: initial"]', 'clickable')
assert wait_on_element(driver, 5, '//div[@data-tooltip="Google Drive Folder: test"]', 'clickable')
time.sleep(1)
action = ActionChains(driver)
action.double_click(driver.find_element_by_xpath('//div[@data-tooltip="Google Drive Folder: test"]')).perform()
time.sleep(1)
Expand Down
155 changes: 0 additions & 155 deletions tests/bdd/ha-bhyve02/test_NAS_T1073.py

This file was deleted.

5 changes: 5 additions & 0 deletions tests/bdd/xpaths.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ class add_Dataset:
unencrypted_Error_Message = '//mat-error[contains(.,"Cannot create an unencrypted dataset within an encrypted dataset (encrypted)")]'


class authorization:
box_Auth_Message = '//*[contains(text(),"Read and write all files and folders stored in Box")]'
Grant_Access_To_Box_Button = '//button[@id="consent_accept_button"]'


class breadcrumb:
dashboard = '//a[text()="Dashboard"]'

Expand Down

0 comments on commit a998a20

Please sign in to comment.