Created
November 22, 2018 20:01
-
-
Save Elise-Lennion/fb333216c2f63ac053d24c7be915c903 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.urls import reverse | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.common.by import By | |
def test_title_redirects_to_details(self): | |
self.browser.get(self.live_server_url + reverse('question-list')) | |
title = WebDriverWait(self.browser, 5).until( | |
EC.element_to_be_clickable((By.CSS_SELECTOR, '#question2 .card-link-title')) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment