Skip to content

Commit 65b3970

Browse files
committedAug 26, 2020
Update test case for dataset header content
1 parent 0209e50 commit 65b3970

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎integration_tests/test_page_loads.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,10 @@ def test_view_dataset(client: FlaskClient):
257257
html = get_html(client, "/dataset/57848615-2421-4d25-bfef-73f57de0574d")
258258

259259
# Label of dataset is header
260-
assert "LS7_ETM_OTH_P51_GALPGS01-002_105_074_20170501" in _h1_text(html)
260+
assert (
261+
"LS7_ETM_OTH_P51_GALPGS01-002_105_074_20170501"
262+
in html.find("h2", first=True).text
263+
)
261264

262265
# wofs_albers dataset (has no label or location)
263266
rv: Response = client.get("/dataset/20c024b5-6623-4b06-b00c-6b5789f81eeb")

0 commit comments

Comments
 (0)
Please sign in to comment.