Skip to content

Commit 22b09c9

Browse files
committed
Delete existing project if exists in sequential pipeline test
1 parent 2ded9d5 commit 22b09c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cesium_app/tests/frontend/test_pipeline_sequentially.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22
from selenium import webdriver
33
from selenium.webdriver.support.ui import Select
4+
from selenium.common.exceptions import NoSuchElementException, TimeoutException
45
import uuid
56
import os
67
from os.path import join as pjoin
@@ -10,6 +11,11 @@
1011
def test_pipeline_sequentially(driver):
1112
driver.get("/")
1213

14+
# Delete existing project if present
15+
try:
16+
driver.wait_for_xpath('//*[contains(text(), "Delete Project")]').click()
17+
except (NoSuchElementException, TimeoutException):
18+
pass
1319
# Add new project
1420
driver.wait_for_xpath('//*[contains(text(), "Or click here to add a new one")]').click()
1521

0 commit comments

Comments
 (0)