Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TE-1625 / 13.3 / Fixed setting ssh and enable ssh in NAS-T0981 #9930

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions tests/bdd/core/test_NAS_T0981.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,13 @@ def click_on_the_services_side_tab(driver):
def the_service_page_should_open(driver):
"""the service page should open."""
assert wait_on_element(driver, 5, '//li[contains(.,"Services")]')
time.sleep(1)


@then('press on configure(pencil) SSH')
def press_on_configure_pencil_ssh(driver):
"""press on configure(pencil) SSH."""
assert wait_on_element(driver, 5, '//button[@ix-auto="button__S3_Actions"]')
# Scroll to SSH service
element = driver.find_element_by_xpath('//button[@ix-auto="button__S3_Actions"]')
driver.execute_script("arguments[0].scrollIntoView();", element)
time.sleep(1)
assert wait_on_element(driver, 5, '//button[@ix-auto="button__SSH_Actions"]', 'clickable')
driver.find_element_by_xpath('//button[@ix-auto="button__SSH_Actions"]').click()


Expand Down Expand Up @@ -109,12 +106,8 @@ def verify_the_checkbox_works_and_click_save(driver):
def click_the_start_automatically_ssh_checkbox_and_enable_the_ssh_service(driver):
"""click the Start Automatically SSH checkbox and enable the SSH service."""
assert wait_on_element(driver, 5, '//li[contains(.,"Services")]')
assert wait_on_element(driver, 5, '//button[@ix-auto="button__S3_Actions"]')
# Scroll to SSH service
element = driver.find_element_by_xpath('//button[@ix-auto="button__S3_Actions"]')
driver.execute_script("arguments[0].scrollIntoView();", element)
time.sleep(1)
driver.find_element_by_xpath('//div[@ix-auto="value__SSH"]')
assert wait_on_element(driver, 5, '//mat-checkbox[@ix-auto="checkbox__SSH_Start Automatically"]', 'clickable')
value_exist = attribute_value_exist(driver, '//mat-checkbox[@ix-auto="checkbox__SSH_Start Automatically"]', 'class', 'mat-checkbox-checked')
if not value_exist:
driver.find_element_by_xpath('//mat-checkbox[@ix-auto="checkbox__SSH_Start Automatically"]').click()
Expand Down
Loading