update end2end tests
This commit is contained in:
		@@ -16,13 +16,15 @@ class TestRegistration:
 | 
				
			|||||||
        selenium.implicitly_wait(1)
 | 
					        selenium.implicitly_wait(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        inputs = selenium.find_elements(By.TAG_NAME, 'input')
 | 
					        inputs = selenium.find_elements(By.TAG_NAME, 'input')
 | 
				
			||||||
        assert len(inputs) == 4
 | 
					        assert len(inputs) == 5
 | 
				
			||||||
        assert inputs[0].get_attribute('id') == 'username'
 | 
					        assert inputs[0].get_attribute('id') == 'username'
 | 
				
			||||||
        assert inputs[0].get_attribute('type') == 'text'
 | 
					        assert inputs[0].get_attribute('type') == 'text'
 | 
				
			||||||
        assert inputs[1].get_attribute('id') == 'email'
 | 
					        assert inputs[1].get_attribute('id') == 'email'
 | 
				
			||||||
        assert inputs[1].get_attribute('type') == 'email'
 | 
					        assert inputs[1].get_attribute('type') == 'email'
 | 
				
			||||||
        assert inputs[2].get_attribute('id') == 'password'
 | 
					        assert inputs[2].get_attribute('id') == 'password'
 | 
				
			||||||
        assert inputs[2].get_attribute('type') == 'password'
 | 
					        assert inputs[2].get_attribute('type') == 'password'
 | 
				
			||||||
 | 
					        assert inputs[4].get_attribute('id') == 'accepted_policy'
 | 
				
			||||||
 | 
					        assert inputs[4].get_attribute('type') == 'checkbox'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        form_infos = selenium.find_elements(By.CLASS_NAME, 'form-info')
 | 
					        form_infos = selenium.find_elements(By.CLASS_NAME, 'form-info')
 | 
				
			||||||
        assert len(form_infos) == 3
 | 
					        assert len(form_infos) == 3
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -32,6 +32,8 @@ def register(selenium, user):
 | 
				
			|||||||
    email.send_keys(user.get('email'))
 | 
					    email.send_keys(user.get('email'))
 | 
				
			||||||
    password = selenium.find_element(By.ID, 'password')
 | 
					    password = selenium.find_element(By.ID, 'password')
 | 
				
			||||||
    password.send_keys(user.get('password'))
 | 
					    password.send_keys(user.get('password'))
 | 
				
			||||||
 | 
					    accepted_policy = selenium.find_element(By.ID, 'accepted_policy')
 | 
				
			||||||
 | 
					    accepted_policy.click()
 | 
				
			||||||
    submit_button = selenium.find_element(By.TAG_NAME, 'button')
 | 
					    submit_button = selenium.find_element(By.TAG_NAME, 'button')
 | 
				
			||||||
    submit_button.click()
 | 
					    submit_button.click()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user