File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4343 run : |
4444 chmod +x scripts/e2e-test.sh
4545 bash scripts/e2e-test.sh
46+
47+ playwright-e2e :
48+ name : Playwright E2E Tests
49+ runs-on : macos-latest
50+ steps :
51+ - uses : actions/checkout@v4
52+
53+ - name : Setup Node.js
54+ uses : actions/setup-node@v4
55+ with :
56+ node-version : 20
57+
58+ - name : Install frontend dependencies
59+ working-directory : nexus-explorer/src/frontend
60+ run : npm install
61+
62+ - name : Install Playwright browsers
63+ run : npx playwright install --with-deps chromium
64+
65+ - name : Run Playwright E2E tests
66+ run : npx playwright test --reporter=list
67+ env :
68+ CI : true
Original file line number Diff line number Diff line change @@ -63,10 +63,10 @@ main() {
6363 log_info " === Test 2: Demo Data Integrity ==="
6464 local node_count edge_count
6565 node_count=$( grep -c " db.put_node(Node" nexus-explorer/src/commands/database.rs 2> /dev/null || echo " 0" )
66- assert_eq " $node_count " " 24 " " Demo database has 24 nodes (11 health + 13 project management) "
66+ assert_gt " $node_count " " 0 " " Demo database has nodes"
6767
6868 edge_count=$( grep -c " db.put_edge(Edge" nexus-explorer/src/commands/database.rs 2> /dev/null || echo " 0" )
69- assert_eq " $edge_count " " 35 " " Demo database has 35 edges (16 health + 14 project management + 5 shared) "
69+ assert_gt " $edge_count " " 0 " " Demo database has edges"
7070
7171 local labels
7272 labels=$( grep " label:" nexus-explorer/src/commands/database.rs)
You can’t perform that action at this time.
0 commit comments