We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfefe5 commit ebb36feCopy full SHA for ebb36fe
tests/delete_sketches/__init__.py
tests/delete_sketches/test_delete_sketches.py
@@ -0,0 +1,15 @@
1
+from codebender_testing.config import STAGING_SITE_URL
2
+from selenium.webdriver.common.by import By
3
+from codebender_testing.utils import SeleniumTestCase
4
+import pytest
5
+
6
+class TestDeleteAllSketches(SeleniumTestCase):
7
8
+ @pytest.mark.requires_url(STAGING_SITE_URL)
9
+ def test_delete(self, tester_login):
10
+ sketches = self.driver.find_elements(By.CSS_SELECTOR, '#project_list > li >a')
11
+ projects = []
12
+ for sketch in sketches:
13
+ projects.append(sketch.text)
14
+ for project in projects:
15
+ self.delete_project(project)
0 commit comments