ОУ ДА
This commit is contained in:
parent
e2fcbecc26
commit
18bfc4a26a
@ -83,7 +83,6 @@ def wrong_old_password(driver):
|
|||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def check_warnings(driver):
|
def check_warnings(driver):
|
||||||
old_password, password, repeat_password = get_password_fields(driver)
|
old_password, password, repeat_password = get_password_fields(driver)
|
||||||
old_password.send_keys(PASSWORD)
|
old_password.send_keys(PASSWORD)
|
||||||
|
21
test_reservation.py
Normal file
21
test_reservation.py
Normal file
@ -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()
|
Loading…
x
Reference in New Issue
Block a user