Skip to content

Commit 9bb91f4

Browse files
committed
Fix locations UI test
1 parent 0b1a683 commit 9bb91f4

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

tests/integration/test_locations_ui.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import pytest
99
from dp_sdk.ocf import dp
10-
import pandas as pd
1110

1211
from tests.integration.conftest import (
1312
create_location_grpc,
@@ -41,11 +40,14 @@ async def test_list_locations_ui(app, data_client: dp.DataPlatformDataServiceStu
4140
app.button("list_locations_button").click()
4241
app.run()
4342

44-
dfs = [df.value for df in app.dataframe]
45-
# Combine all rendered dataframes
46-
all_tables = pd.concat(dfs)
43+
# Assert success message is shown
44+
assert any("found" in s.value.lower() for s in app.success)
45+
46+
# Verify via gRPC that locations were created
47+
response = await list_locations_grpc(data_client)
48+
all_location_names = [loc.location_name for loc in response.locations]
4749
for location_name in location_names:
48-
assert location_name in all_tables["locationName"].values
50+
assert location_name in all_location_names
4951

5052

5153
@pytest.mark.integration

0 commit comments

Comments
 (0)