Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions tests/test_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def page():
assert screen.selenium.find_element(By.XPATH, '//span[p[contains(text(), "Node_A")]]').is_displayed()

screen.click('Set new content')
screen.wait(1.0) # wait for Mermaid to render
screen.should_contain('New')
assert screen.selenium.find_element(By.XPATH, '//span[p[contains(text(), "Node_C")]]').is_displayed()
screen.should_not_contain('Node_A')
Expand Down
2 changes: 2 additions & 0 deletions tests/test_mermaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ def page():
'''))

screen.open('/')
screen.wait(1.0) # wait for Mermaid to render
node_a = screen.selenium.find_element(By.XPATH, '//span[p[contains(text(), "Node_A")]]')
assert node_a.get_attribute('class') == 'nodeLabel'

screen.click('Set new content')
screen.wait(1.0) # wait for Mermaid to render
node_c = screen.selenium.find_element(By.XPATH, '//span[p[contains(text(), "Node_C")]]')
assert node_c.get_attribute('class') == 'nodeLabel'
screen.should_not_contain('Node_A')
Expand Down