mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(site/src/modules/resources): clarify agent log download button label (#25641)
This commit is contained in:
@@ -34,7 +34,7 @@ export const ClickOnDownload: Story = {
|
||||
play: async ({ canvasElement, args }) => {
|
||||
const canvas = within(canvasElement);
|
||||
await userEvent.click(
|
||||
canvas.getByRole("button", { name: "Download logs" }),
|
||||
canvas.getByRole("button", { name: "Download agent logs" }),
|
||||
);
|
||||
await waitFor(() =>
|
||||
expect(args.download).toHaveBeenCalledWith(
|
||||
|
||||
@@ -58,7 +58,7 @@ export const DownloadAgentLogsButton: FC<DownloadAgentLogsButtonProps> = ({
|
||||
}}
|
||||
>
|
||||
<DownloadIcon />
|
||||
{isDownloading ? "Downloading..." : "Download logs"}
|
||||
{isDownloading ? "Downloading..." : "Download agent logs"}
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -63,7 +63,7 @@ export const DownloadSelectedAgentLogsButton: FC<
|
||||
>
|
||||
<DownloadIcon />
|
||||
<span className="sr-only">
|
||||
{isDownloading ? "Downloading..." : "Download logs"}
|
||||
{isDownloading ? "Downloading..." : "Download agent logs"}
|
||||
</span>
|
||||
<ChevronDownIcon className="size-icon-sm" />
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user