Skip to content

Commit cadbcfa

Browse files
Align sanity workflow with Category= filters and default-on Local
Mirror the README/yml changes from ed3541a: - Filter strings: FullyQualifiedName~BStack* -> Category=sample-test / sample-local-test - Drop the in-workflow sed that flipped browserstackLocal false -> true; the yml ships with browserstackLocal: true now - Refresh the top-of-file scenario summary to match Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ed3541a commit cadbcfa

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/sanity-workflow.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Sanity workflow that verifies the NUnit + Playwright BrowserStack SDK sample
22
# against a full commit id, mirroring browserstack/xunit-reqnroll-playwright-browserstack.
3-
# Two test runs:
4-
# 1. Public bstackdemo scenario (browserstackLocal: false in yml).
5-
# 2. BrowserStack Local scenario (yml flipped to true; a python http.server
3+
# Two test runs (yml ships with browserstackLocal: true; both runs benefit from it):
4+
# 1. Public bstackdemo scenario (Category=sample-test).
5+
# 2. BrowserStack Local scenario (Category=sample-local-test) — a python http.server
66
# hosts a tiny title-matching page on port 45454, the SDK starts the tunnel,
7-
# and the test asserts that the cloud browser sees that page through bs-local.com).
7+
# and the test asserts that the cloud browser sees that page through bs-local.com.
88

99
name: NUnit Playwright SDK sanity workflow on workflow_dispatch
1010

@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: Run sample tests (public bstackdemo)
7878
working-directory: NunitPlaywrightBrowserstack.Tests
79-
run: dotnet test --filter "FullyQualifiedName~BStackDemoCart"
79+
run: dotnet test --filter "Category=sample-test"
8080

8181
- name: Run local tests (BrowserStack Local + python http.server harness)
8282
shell: bash
@@ -94,10 +94,8 @@ jobs:
9494
HTTP_PID=$!
9595
trap 'kill "$HTTP_PID" 2>/dev/null || true' EXIT
9696
sleep 2
97-
# 2. Flip the SDK Local toggle so the SDK starts/stops the tunnel.
98-
sed -i.bak 's/^browserstackLocal: false/browserstackLocal: true/' browserstack.yml && rm -f browserstack.yml.bak
99-
# 3. Run only the local scenario; cloud browser reaches the harness through bs-local.com.
100-
dotnet test --filter "FullyQualifiedName~BStackLocalSample"
97+
# 2. Run only the local scenario; cloud browser reaches the harness through bs-local.com (browserstackLocal:true ships as default).
98+
dotnet test --filter "Category=sample-local-test"
10199
102100
- if: always()
103101
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975

0 commit comments

Comments
 (0)