diff --git a/test_profile_module.py b/test_profile_module.py index 2199a13..2ba6fd6 100644 --- a/test_profile_module.py +++ b/test_profile_module.py @@ -83,7 +83,6 @@ def wrong_old_password(driver): time.sleep(1) - def check_warnings(driver): old_password, password, repeat_password = get_password_fields(driver) old_password.send_keys(PASSWORD) diff --git a/test_reservation.py b/test_reservation.py new file mode 100644 index 0000000..3c9d420 --- /dev/null +++ b/test_reservation.py @@ -0,0 +1,21 @@ +from common_fixtures import login, driver +from selenium.webdriver.common.by import By +import time + + +def test_reservation(login): + driver = login + driver.find_element(By.XPATH, "//*[@id='root']/div/div/div/div[2]/div/a[1]/div[2]/div[2]/div/div[1]").click() + time.sleep(3) + the_iframe = driver.find_element(By.ID, "kw-iframe") + driver.switch_to.frame(the_iframe) + film_name = driver.find_element(By.CLASS_NAME, 'hall-schema-popup__title').text + driver.find_element(By.XPATH, "//*[@id='root']/div/div[1]/div[1]/div/div/div[4]/div[2]/div/div/canvas").click() + time.sleep(1) + driver.find_element(By.XPATH, "//button[@type='button']").click() + time.sleep(1) + driver.find_element(By.XPATH, "//button[text()='Продолжить']").click() + time.sleep(2) + driver.find_element(By.XPATH, "//span[text()='Оплатить через СБП']").click() + time.sleep(2) + assert driver.find_element(By.XPATH, "//*[text()='Отсканируйте и оплатите в приложении банка.']").is_displayed() \ No newline at end of file