create.test

    0

    4

    hoangNTB

    expect(navigate.location).to_equal('/signup')

    This code will test whether the user is successfully redirected to the sign up page when they enter their phone number and password into the input fields on the registration page. It also checks to see that the user is indeed on the sign up page and that the URL matches what was entered in the test_sign_up_with_phone_number() function. Finally, it expects that the user is redirected to the /signup page.

    Shortcut: create.test

    def test_sign_up_with_phone_number(navigate, register_page):
      # Arrange
      navigate.to(Environment.REGISTER_PAGE_URL)
    
      # Act
      register_page.\
        enter_phone_numbers(phone_numbers). \
        enter_otp_numbers(otp_numbers). \
        create_password(password)
    
      # Assert
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.