Describe the bug
There are a couple of issues running the API tests using the CLI. These include not being able to run the @sensing set of tests.
To Reproduce
With an up-to-date working installation of flock, from the CLI, run:
npm run test:api @sensing
Expected behaviour
The 'sensing' tests should be run and complete correctly.
Example of the error
npm run test:api @sensing
> Flock@1.0.0 test:api
> node scripts/run-api-tests.mjs @sensing
╔════════════════════════════════════════════════════════════════╗
║ Flock XR API Test Runner ║
╚════════════════════════════════════════════════════════════════╝
🚀 Starting development server...
✓ Vite ready message detected
🔍 Verifying server is responsive...
✅ Development server started and responding
🌐 Launching headless browser...
📄 Loading test page...
[browser:debug] [vite] connecting...
[browser:debug] [vite] connected.
[browser:log] BJS - [18:44:41]: Babylon.js v8.56.2 - WebGL2 - Parallel shader compilation
[browser:error] Loading the stylesheet 'https://use.typekit.net/cta4xsb.css' violates the following Content Security Policy directive: "style-src 'self' 'unsafe-inline'". Note that 'style-src-elem' was not explicitly set, so 'style-src' is used as a fallback. The action has been blocked.
⏳ Waiting for test page to load...
✅ Test page loaded
⏳ Waiting for Flock to initialize...
✓ Flock object available
✓ Waiting for test suite definitions...
✅ Flock initialized and tests loaded
🧪 Running test suite: @sensing
❌ Error: page.selectOption: Timeout 30000ms exceeded.
Call log:
- waiting for locator('#testSelect')
- locator resolved to <select id="testSelect">…</select>
- attempting select option action
2 × waiting for element to be visible and enabled
- did not find some options
- retrying select option action
- waiting 20ms
2 × waiting for element to be visible and enabled
- did not find some options
- retrying select option action
- waiting 100ms
59 × waiting for element to be visible and enabled
- did not find some options
- retrying select option action
- waiting 500ms
page.selectOption: Timeout 30000ms exceeded.
Call log:
- waiting for locator('#testSelect')
- locator resolved to <select id="testSelect">…</select>
- attempting select option action
2 × waiting for element to be visible and enabled
- did not find some options
- retrying select option action
- waiting 20ms
2 × waiting for element to be visible and enabled
- did not find some options
- retrying select option action
- waiting 100ms
59 × waiting for element to be visible and enabled
- did not find some options
- retrying select option action
- waiting 500ms
at runTests (/Users/julianharty/NLnet-projects/commercetest-flock-xr/scripts/run-api-tests.mjs:590:14)
at async main (/Users/julianharty/NLnet-projects/commercetest-flock-xr/scripts/run-api-tests.mjs:989:32)
🛑 Stopping development server...
(base) julianharty@Mac commercetest-flock-xr % npm run test:api @sensing
> Flock@1.0.0 test:api
System information:
- OS: MacOS
- Browser: Pre-installed headless browser (Chromium)
Describe the bug
There are a couple of issues running the API tests using the CLI. These include not being able to run the
@sensingset of tests.To Reproduce
With an up-to-date working installation of flock, from the CLI, run:
Expected behaviour
The 'sensing' tests should be run and complete correctly.
Example of the error
System information: