Skip to content

Commit

Permalink
Update selector
Browse files Browse the repository at this point in the history
  • Loading branch information
raethlein committed May 6, 2024
1 parent c5eacf1 commit eb1d0ab
Show file tree
Hide file tree
Showing 71 changed files with 19 additions and 21 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 18 additions & 20 deletions e2e_playwright/st_heading_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,21 @@ def test_headers_hovered_snapshot_match(
headers = _get_header_elements(themed_app)
header = headers.nth(0)
header.hover()
link_container = header.get_by_test_id("StyledLinkIconContainer")
expect(link_container).to_have_css("opacity", "1")
assert_snapshot(link_container, name="st_header-hover_with_visible_anchor")
link_container = header.get_by_test_id("stHeaderActionElements")
expect(link_container).to_have_css("visibility", "visible")
assert_snapshot(header, name="st_header-hover_with_visible_anchor")

header = headers.nth(3)
header.hover()
link_container = header.get_by_test_id("StyledLinkIconContainer")
expect(link_container).to_have_css("opacity", "1")
assert_snapshot(link_container, name="st_header-hover_with_help_and_anchor")
link_container = header.get_by_test_id("stHeaderActionElements")
expect(link_container).to_have_css("visibility", "visible")
assert_snapshot(header, name="st_header-hover_with_help_and_anchor")

header = headers.nth(4)
header.hover()
link_container = header.get_by_test_id("StyledLinkIconContainer")
expect(link_container).to_have_css("opacity", "1")
assert_snapshot(link_container, name="st_header-hover_with_help_and_hidden_anchor")
link_container = header.get_by_test_id("stHeaderActionElements")
expect(link_container).to_have_css("visibility", "visible")
assert_snapshot(header, name="st_header-hover_with_help_and_hidden_anchor")


def test_subheaders_snapshot_match(
Expand All @@ -177,23 +177,21 @@ def test_subheaders_hovered_snapshot_match(
headers = _get_subheader_elements(themed_app)
header = headers.nth(0)
header.hover()
link_container = header.get_by_test_id("StyledLinkIconContainer")
expect(link_container).to_have_css("opacity", "1")
assert_snapshot(link_container, name="st_subheader-hover_with_visible_anchor")
link_container = header.get_by_test_id("stHeaderActionElements")
expect(link_container).to_have_css("visibility", "visible")
assert_snapshot(header, name="st_subheader-hover_with_visible_anchor")

header = headers.nth(5)
header.hover()
link_container = header.get_by_test_id("StyledLinkIconContainer")
expect(link_container).to_have_css("opacity", "1")
assert_snapshot(link_container, name="st_subheader-hover_with_help_and_anchor")
link_container = header.get_by_test_id("stHeaderActionElements")
expect(link_container).to_have_css("visibility", "visible")
assert_snapshot(header, name="st_subheader-hover_with_help_and_anchor")

header = headers.nth(6)
header.hover()
link_container = header.get_by_test_id("StyledLinkIconContainer")
expect(link_container).to_have_css("opacity", "1")
assert_snapshot(
link_container, name="st_subheader-hover_with_help_and_hidden_anchor"
)
link_container = header.get_by_test_id("stHeaderActionElements")
expect(link_container).to_have_css("visibility", "visible")
assert_snapshot(header, name="st_subheader-hover_with_help_and_hidden_anchor")


def test_links_are_rendered_correctly_snapshot(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ describe("StreamlitMarkdown", () => {
</IsSidebarContext.Provider>
)
expect(
screen.queryByTestId("stStyledHeadingWithActionElements=1")
screen.queryByTestId("stStyledHeadingWithActionElements")
).not.toBeInTheDocument()
})

Expand Down

0 comments on commit eb1d0ab

Please sign in to comment.