[feat] Utilize pytest.mark.external_test in 2 tests#13738
[feat] Utilize pytest.mark.external_test in 2 tests#13738sfc-gh-bnisco merged 1 commit intodevelopfrom
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull request overview
This PR adds the @pytest.mark.external_test decorator to two test functions to enable them to run in external test environments (e.g., SiS vNext). The tests are updated to use the AppTarget fixture instead of the Page object, which provides a stable abstraction that works across local, external direct, and external host (iframe) modes.
Changes:
- Added
@pytest.mark.external_testtotest_help_tooltip_worksinst_text_test.pyandtest_no_console_errorsinmega_tester_app_test.py - Updated both tests to use the
AppTargetfixture instead ofPage, enabling them to work in external test environments - Removed unused imports and parameters that are no longer needed with
AppTarget
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
e2e_playwright/st_text_test.py |
Added @pytest.mark.external_test to test_help_tooltip_works and migrated from Page to AppTarget fixture |
e2e_playwright/mega_tester_app_test.py |
Added @pytest.mark.external_test(upload_test_assets=True) to test_no_console_errors and migrated from Page/app_port to AppTarget fixture with proper reload and wait logic |
05ab0e4 to
5f43c64
Compare
2fa0058 to
8bdee90
Compare
5f43c64 to
5c81234
Compare
eaa3de0 to
83ca0ac
Compare
1968bfb to
696cc5b
Compare
|
|
||
|
|
||
| def test_no_console_errors(page: Page, app_port: int, browser_name: str): | ||
| @pytest.mark.external_test(upload_test_assets=True) |
There was a problem hiding this comment.
question: What does upload_test_assets do? Could be added to the AGENTS.md file with a brief explanation.
There was a problem hiding this comment.
Added guidance in the code and updated the AGENTS.md file to refer to the code for documentation.
696cc5b to
8c8547b
Compare
83ca0ac to
9bdbbc0
Compare
9bdbbc0 to
5383b0c
Compare
8c8547b to
1ebc6fd
Compare
Merge activity
|
1ebc6fd to
212ccab
Compare

Describe your changes
Added the
@pytest.mark.external_testdecorator to tests that should run in external test environments. Updated themega_tester_app_test.pyandst_text_test.pyto use theAppTargetfixture instead of directly using thePageobject.Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.