mirror of
https://github.com/goauthentik/authentik.git
synced 2026-08-30 18:51:39 -07:00
web/test: let the library launch the RAC app it filters to
The test filtered the library to its application and then clicked the card, but the click was intercepted for the full 30s by a Launch Endpoint dialog that was already open. The filter opens it: `fill()` dispatches `change`, and `#changeListener` in `ak-library-impl` focuses and clicks the row as soon as exactly one application matches. So the explicit click landed on the modal the filter had just raised, with the card underneath no longer taking pointer events. Assert the launcher opens from the filter instead. The card is still asserted visible first, so a missing application still fails here rather than further down. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -175,13 +175,17 @@ test.describe("RAC", () => {
|
||||
"Application launch button appears in the filtered library",
|
||||
).toBeVisible({ timeout: 15_000 });
|
||||
|
||||
await test.step("Open the endpoint launcher", async () => {
|
||||
await launchButton.click();
|
||||
});
|
||||
|
||||
const launchDialog = page.getByRole("dialog", { name: /Launch Endpoint/i });
|
||||
|
||||
await expect(launchDialog, "Launch Endpoint dialog opens").toBeVisible();
|
||||
// No explicit click: filling the search dispatches `change`, and the library
|
||||
// launches the row itself once exactly one application matches — see
|
||||
// `#changeListener` in `ak-library-impl`. Clicking again would land on the modal
|
||||
// that filter just opened, and the card underneath stops receiving pointer events.
|
||||
await test.step("Endpoint launcher opens for the single match", async () => {
|
||||
await expect(launchDialog, "Launch Endpoint dialog opens").toBeVisible({
|
||||
timeout: 15_000,
|
||||
});
|
||||
});
|
||||
|
||||
// Both endpoints must render on first open — no manual refresh, no
|
||||
// re-navigation. Two endpoints are required because a single endpoint
|
||||
|
||||
Reference in New Issue
Block a user