Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions tests/test_appearance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import pytest
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC


def test_appearance_to_dark(browser):
themes={'none': 'dark', 'dark': 'dark-system', 'dark-system': 'none'}
Expand Down Expand Up @@ -45,7 +47,8 @@ def test_appearance_to_light(browser):
assert theme != theme_new


@pytest.mark.skip()

@pytest.mark.dependency(depends=["test_create_pipeline_project"])
def test_appearance_show_pipeline_stages(browser):
browser.find_element(By.XPATH, "//a[@id='root-action-ManageJenkinsAction']").click()
browser.find_element(By.XPATH, "//a[@href='appearance']").click()
Expand All @@ -55,11 +58,9 @@ def test_appearance_show_pipeline_stages(browser):
browser.execute_script("arguments[0].scrollIntoView(true);", checkbox_stages_1)
checkbox_stages_1.click()

browser.get("http://localhost:8080/")
job_link = browser.find_element(By.XPATH, '//a[@href="job/test/"]')
browser.find_element(By.XPATH, "//img[@id='jenkins-head-icon']").click()
job_link = browser.find_element(By.XPATH, '//a[@href="job/test_1/"]')
browser.execute_script("arguments[0].click();", job_link)
stages_loc = browser.find_element(By.XPATH, "//a[@href='multi-pipeline-graph']")
assert stages_loc.is_displayed()



Loading