Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions .github/issue-evidence/11332-credentials-tab-e2e/RESULT.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"failures": 0,
"when": "2026-07-02T21:00:07.141Z"
}
Binary file not shown.
61 changes: 61 additions & 0 deletions packages/ui/src/cloud/organization/__e2e__/credentials-fixture.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/**
* Browser fixture for the org credentials-tab visual e2e (#11332 / #11488).
* Mounts the REAL CredentialsTab — CloudI18nProvider + react-query + the real
* sonner <Toaster/> — against the live mock cloud stack proxied on the page
* origin. The host page seeds the steward token in localStorage; the fixture
* fetches the real /api/v1/user for the RBAC-bearing user DTO exactly like the
* dashboard shell does. `?contribute=1` mirrors the connect-link landing
* (auto-open contribute modal).
*/

import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { useEffect, useState } from "react";
import { createRoot } from "react-dom/client";
import { Toaster } from "sonner";
import { api } from "../../lib/api-client";
import { CloudI18nProvider } from "../../shell/CloudI18nProvider";
import { CredentialsTab } from "../credentials-tab";
import type { UserWithOrganizationDto } from "../data/cloud-org-types";

interface Envelope<T> {
data: T;
}

function Fixture() {
const [user, setUser] = useState<UserWithOrganizationDto | null>(null);
const [error, setError] = useState<string | null>(null);
const autoContribute = new URLSearchParams(window.location.search).has(
"contribute",
);

useEffect(() => {
api<Envelope<UserWithOrganizationDto>>("/api/v1/user")
.then((res) => setUser(res.data))
.catch((err) => setError(String(err)));
}, []);

if (error) return <div data-testid="fixture-error">{error}</div>;
if (!user) return <div data-testid="fixture-loading">loading user…</div>;
return (
<div className="min-h-screen bg-bg font-body text-txt">
<main className="mx-auto max-w-4xl space-y-6 px-4 py-8">
<CredentialsTab user={user} autoContribute={autoContribute} />
</main>
<Toaster position="bottom-right" />
</div>
);
}

const queryClient = new QueryClient({
defaultOptions: { queries: { retry: false } },
});

const rootEl = document.getElementById("root");
if (!rootEl) throw new Error("fixture root missing");
createRoot(rootEl).render(
<CloudI18nProvider initialLang="en">
<QueryClientProvider client={queryClient}>
<Fixture />
</QueryClientProvider>
</CloudI18nProvider>,
);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"failures": 0,
"when": "2026-07-02T21:00:07.141Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"compilerOptions":{}}
Binary file not shown.
Loading
Loading