a221e234a0c49d1cc05b29bfe2a758eccfba8e12,tests/test_integration.py,DebugToolbarLiveTestCase,test_sql_action_and_go_back,#DebugToolbarLiveTestCase#,453
Before Change
)
def test_sql_action_and_go_back(self):
self.selenium.get(self.live_server_url + "/execute_sql/")
sql_panel = self.selenium.find_element_by_id("SQLPanel")
debug_window = self.selenium.find_element_by_id("djDebugWindow")
// Click to show the SQL panel
self.selenium.find_element_by_class_name("SQLPanel").click()
// SQL panel loads
button = WebDriverWait(self.selenium, timeout=3).until(
EC.visibility_of_element_located((By.CSS_SELECTOR, ".remoteCall"))
)
button.click()
After Change
)
def test_sql_action_and_go_back(self):
self.get("/execute_sql/")
sql_panel = self.selenium.find_element_by_id("SQLPanel")
debug_window = self.selenium.find_element_by_id("djDebugWindow")
// Click to show the SQL panel
self.selenium.find_element_by_class_name("SQLPanel").click()
// SQL panel loads
button = self.wait.until(
EC.visibility_of_element_located((By.CSS_SELECTOR, ".remoteCall"))
)
button.click()
// SQL selected window loads
self.wait.until(EC.visibility_of(debug_window))
self.assertIn("SQL selected", debug_window.text)
// Close the SQL selected window
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 8
Instances
Project Name: jazzband/django-debug-toolbar
Commit Name: a221e234a0c49d1cc05b29bfe2a758eccfba8e12
Time: 2020-10-10
Author: jon.dufresne@gmail.com
File Name: tests/test_integration.py
Class Name: DebugToolbarLiveTestCase
Method Name: test_sql_action_and_go_back
Project Name: jazzband/django-debug-toolbar
Commit Name: a221e234a0c49d1cc05b29bfe2a758eccfba8e12
Time: 2020-10-10
Author: jon.dufresne@gmail.com
File Name: tests/test_integration.py
Class Name: DebugToolbarLiveTestCase
Method Name: test_sql_action_and_go_back
Project Name: jazzband/django-debug-toolbar
Commit Name: a221e234a0c49d1cc05b29bfe2a758eccfba8e12
Time: 2020-10-10
Author: jon.dufresne@gmail.com
File Name: tests/test_integration.py
Class Name: DebugToolbarLiveTestCase
Method Name: test_django_cached_template_loader
Project Name: jazzband/django-debug-toolbar
Commit Name: a221e234a0c49d1cc05b29bfe2a758eccfba8e12
Time: 2020-10-10
Author: jon.dufresne@gmail.com
File Name: tests/test_integration.py
Class Name: DebugToolbarLiveTestCase
Method Name: test_basic
Project Name: jazzband/django-debug-toolbar
Commit Name: a221e234a0c49d1cc05b29bfe2a758eccfba8e12
Time: 2020-10-10
Author: jon.dufresne@gmail.com
File Name: tests/test_integration.py
Class Name: DebugToolbarLiveTestCase
Method Name: test_displays_server_error
Project Name: jazzband/django-debug-toolbar
Commit Name: a221e234a0c49d1cc05b29bfe2a758eccfba8e12
Time: 2020-10-10
Author: jon.dufresne@gmail.com
File Name: tests/test_integration.py
Class Name: DebugToolbarLiveTestCase
Method Name: test_expired_store