-
Notifications
You must be signed in to change notification settings - Fork 7
Added custom fixture to fix session merge issue #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -2,7 +2,8 @@ | |||
from playwright.sync_api import expect | |||
|
|||
|
|||
def test_bstack_sample(page) -> None: | |||
def test_sample(session_capabilities) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same change for local test as well
conftest.py
Outdated
result = page.evaluate("() => {}", browser_stack_command) | ||
return json.loads(result) | ||
|
||
if os.environ.get('REMOTE', 'true') == "true": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this condition not needed
conftest.py
Outdated
def session_capabilities(playwright: Playwright): | ||
global timenow | ||
global lock | ||
test_name = os.environ.get('PYTEST_CURRENT_TEST').split(' ')[0].split('::')[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't this create duplicate tests at browserstack. Please attach sessions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.