-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
52 lines (46 loc) · 1.72 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from selenium import webdriver
from tests import *
import pytest
def test_first_in_search_test(selenium):
selenium.get("https://github.com/")
selenium.maximize_window()
searchTest(selenium,'kiwitcms/Kiwi','kiwitcms/Kiwi')
def test_not_first_in_search_test(selenium):
selenium.get("https://github.com/")
selenium.maximize_window()
searchTest(selenium,'Kiwi','kiwitcms/Kiwi', True)
def test_signup_easy_pass(selenium):
selenium.get("https://github.com/")
selenium.maximize_window()
try:
SignUpFieldsTest(selenium, 'testingemail@gmail.com', "asdf1234", "Wtawwwse", "n", "password")
except:
assert True == True
def test_signup_without_num(selenium):
selenium.get("https://github.com/")
selenium.maximize_window()
try:
SignUpFieldsTest(selenium, 'testinsdcgemail@gmail.com', "CwaCsaCdfgsetr", "Wtawwwse", "n", "password")
except:
assert True == True
def test_signup_wring_email(selenium):
selenium.get("https://github.com/")
selenium.maximize_window()
try:
SignUpFieldsTest(selenium, 'testingem**ail@gmail.com', "CwaCsaCdfgse2415tr", "Wtawwwse", "n", "email")
except:
assert True == True
def test_signup_short_password(selenium):
selenium.get("https://github.com/")
selenium.maximize_window()
try:
SignUpFieldsTest(selenium, 'testingemail@gmail.com', "asdf4", "Wtawwwse", "n", "password")
except:
assert True == True
def test_signup_wrong_password_2(selenium):
selenium.get("https://github.com/")
selenium.maximize_window()
try:
SignUpFieldsTest(selenium, 'testingemail@gmail.com', "asdf123іівц4", "і1414124222", "n", "password")
except:
assert True == True