I am running this puppeteer test on master:
 ./ci/tests/puppeteer/run.sh --scenario 
./ci/tests/puppeteer/scenarios/"palantir-login"

It fails with:
[22:43:23.261] DEBUG (2497117): 🔷 'Chromium directory: 
/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/chromium'
[22:43:23.261] INFO (2497117): 🍀 'Attempt #0 to launch browser...'
[22:43:23.262] DEBUG (2497117): 🔷 'Chromium user data directory: 
/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/chromium/user-data-dir'
[22:43:23.563] DEBUG (2497117): 🔷 'Waiting for 1 second(s)...'
[22:43:24.585] INFO (2497117): 🍀 'Browser Chrome/136.0.7103.49 / Mozilla/5.0 
(X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 
Safari/537.36 is launched...'
[22:43:24.585] INFO (2497117): 🍀 'Chromium Executable Path:'
[22:43:24.633] INFO (2497117): 🍀 'Navigating to: 
https://localhost:8443/cas/palantir/dashboard'
[22:43:25.015] DEBUG (2497117): 🔷 'Waiting for 0.5 second(s)...'
[22:43:25.529] INFO (2497117): 🍀 'Response status: 403'
[22:43:25.529] DEBUG (2497117): 🔷 'Logging in with casadmin and password'
2025-06-23 22:43:41,872 INFO 
[org.apereo.cas.services.mgmt.AbstractServicesManager] - <Loaded [1] service(s) 
from cache [EmbeddedResourceBasedServiceRegistry].>
2025-06-23 22:43:51,871 INFO 
[org.apereo.cas.ticket.registry.DefaultTicketRegistryCleaner] - <[0] expired 
tickets removed.>
[22:43:55.548] ERROR (2497117): 📛 TimeoutError: Waiting for selector 
`#username` failed: Waiting failed: 30000ms exceeded
    at new WaitTask 
(/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/node_modules/puppeteer-core/src/common/WaitTask.ts:76:28)
    at IsolatedWorld.waitForFunction 
(/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/node_modules/puppeteer-core/src/api/Realm.ts:74:22)
    at CSSQueryHandler.waitFor 
(/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/node_modules/puppeteer-core/src/common/QueryHandler.ts:170:50)
    at CdpFrame.waitForSelector 
(/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/node_modules/puppeteer-core/src/api/Frame.ts:747:13)
    at CdpPage.waitForSelector 
(/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/node_modules/puppeteer-core/src/api/Page.ts:3015:12)
    at Object.exports.submitLoginCredentials 
(/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/cas.js:246:5)
    at Object.exports.loginWith 
(/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/cas.js:256:9)
    at 
/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/scenarios/palantir-login/script.js:8:20
[22:43:55.548] DEBUG (2497117): 🔷 'Waiting for 1 second(s)...'
TypeError: Cannot read properties of undefined (reading 'status')
    at 
/home/rbon/workspace/vendor-support/cas-server/ci/tests/puppeteer/scenarios/palantir-login/script.js:10:31
🔥  Script: ./ci/tests/puppeteer/scenarios/palantir-login/script.js with config: 
./ci/tests/puppeteer/scenarios/palantir-login/script.json failed with return 
code 1
Progress: [] %

**************************************************************************

🔥  Test scenario [palantir-login] has failed with exit code 1.

>From the browser dev tools network tab, there is no redirect to the log in 
>page (or does it trigger browser basic auth?)


The test does not run on github because:
Required environment variable DUO_SECURITY_ADMIN_SKEY is not set; skipping test 
execution.

So I can not compare execution logs.

Is there anything I have to do to get this test to run locally?


--


Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]<mailto:[email protected]>

I acknowledge and respect the Lək̓ʷəŋən (Songhees and Xʷsepsəm/Esquimalt) 
Peoples on whose territory the university stands, and the Lək̓ʷəŋən and W̱SÁNEĆ 
Peoples whose historical relationships with the land continue to this day.


-- 
You received this message because you are subscribed to the Google Groups "CAS 
Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-dev/YQBP288MB00813603524F3E3E0858FAC2CE78A%40YQBP288MB0081.CANP288.PROD.OUTLOOK.COM.

Reply via email to