Exemplo n.º 1
0
 def setUp(self):
     auth_test(self)
     # Create 3 new todos
     main_page = MainPage(self.driver)
     main_page.delete_todos(self)
     for iii in range(len(self.TODO_NAMES)):
         main_page.create_todo(self.TODO_NAMES[iii], iii)
     self.driver.get(self.driver.current_url)
     main_page.check_for_self(self)
Exemplo n.º 2
0
def auth_test(test):
    main_page = MainPage(test.driver)
    main_page.open()

    auth_page = AuthPage(test.driver)
    auth_page.check_for_self(test)

    set_input(test.driver, auth_page.EMAIL_INPUT, os.environ.get('LOGIN'))
    auth_page.next()
    set_input(test.driver, auth_page.PASSWORD_INPUT,os.environ.get('PASSWORD'))
    auth_page.submit()

    main_page.check_for_self(test)