Skip to content

Commit

Permalink
[wdspec] Add test for browser.createUserContext command
Browse files Browse the repository at this point in the history
Depends on D198969

Differential Revision: https://phabricator.services.mozilla.com/D198970

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1870848
gecko-commit: 60fe798e08d41c429c2e03725fce2845f82a9162
gecko-reviewers: webdriver-reviewers, whimboo
  • Loading branch information
juliandescottes authored and moz-wptsync-bot committed Jan 24, 2024
1 parent 2afed19 commit 0a8ff7c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest


@pytest.mark.asyncio
async def test_unique_id(bidi_session):
first_context = await bidi_session.browser.create_user_context()
assert isinstance(first_context, str)

other_context = await bidi_session.browser.create_user_context()
assert isinstance(other_context, str)

assert first_context != other_context

0 comments on commit 0a8ff7c

Please sign in to comment.