chore(test): Fix locator in dev auth smoke tests#1945
Conversation
✅ Deploy Preview for cedarjs canceled.
|
Greptile SummaryThis PR fixes two smoke tests where
Confidence Score: 5/5Safe to merge — the change only fixes previously inert test assertions so the smoke tests now actually validate what they claim to check. Both changed files are test-only. The fixes are minimal and correct: adding No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Fix expected text" | Re-trigger Greptile |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 1s | View ↗ |
nx run-many -t build |
✅ Succeeded | 5s | View ↗ |
nx run-many -t test --minWorkers=1 --maxWorkers=4 |
✅ Succeeded | 7s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 10s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-06-18 12:00:36 UTC
|
The changes in this PR are now available on npm. Try them out by running Or try it in a new app with |

.toBeTruthy()on a Locator always passespage.locator(...)returns aLocatorobject, which is always a non-null JavaScript object and is therefore always truthy. CheckingtoBeTruthy()will never fail regardless of whether the error text that we're looking for is actually visible on the page, making the anonymous-user guard completely untested. The same pattern appears in bothauthChecks.spec.tsandrbacChecks.spec.tson the non-admin delete test.