Skip to content

Commit

Permalink
test: update test expecation
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Mar 27, 2024
1 parent 5087866 commit fa030a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions tests/async/test_browsercontext_storage_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ async def test_should_capture_local_storage(context: BrowserContext) -> None:
origins = state["origins"]
assert len(origins) == 2
assert origins[0] == {
"origin": "https://www.example.com",
"localStorage": [{"name": "name1", "value": "value1"}],
}
assert origins[1] == {
"origin": "https://www.domain.com",
"localStorage": [{"name": "name2", "value": "value2"}],
}
assert origins[1] == {
"origin": "https://www.example.com",
"localStorage": [{"name": "name1", "value": "value1"}],
}


async def test_should_set_local_storage(browser: Browser) -> None:
Expand Down
8 changes: 4 additions & 4 deletions tests/sync/test_browsercontext_storage_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def test_should_capture_local_storage(context: BrowserContext) -> None:
assert origins
assert len(origins) == 2
assert origins[0] == {
"origin": "https://www.example.com",
"localStorage": [{"name": "name1", "value": "value1"}],
}
assert origins[1] == {
"origin": "https://www.domain.com",
"localStorage": [{"name": "name2", "value": "value2"}],
}
assert origins[1] == {
"origin": "https://www.example.com",
"localStorage": [{"name": "name1", "value": "value1"}],
}


def test_should_set_local_storage(browser: Browser) -> None:
Expand Down

0 comments on commit fa030a9

Please sign in to comment.