e2e: fix linting error
This commit is contained in:
parent
0310d46314
commit
f1e6d91289
|
@ -3,7 +3,7 @@ from django.contrib.staticfiles.testing import StaticLiveServerTestCase
|
|||
from selenium import webdriver
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
|
||||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from selenium.webdriver.support import expected_conditions as ec
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
|
||||
from e2e.utils import apply_default_data
|
||||
|
@ -101,7 +101,7 @@ class TestEnroll2Step(StaticLiveServerTestCase):
|
|||
self.driver.find_element(By.CSS_SELECTOR, ".pf-c-button").click()
|
||||
self.driver.find_element(By.LINK_TEXT, "foo").click()
|
||||
|
||||
self.wait.until(EC.presence_of_element_located((By.ID, "id_username")))
|
||||
self.wait.until(ec.presence_of_element_located((By.ID, "id_username")))
|
||||
self.assertEqual(
|
||||
self.driver.find_element(By.XPATH, "//a[contains(@href, '/-/user/')]").text,
|
||||
"foo",
|
||||
|
|
Reference in New Issue