25 lines · 786 B · TypeScript
RawDownload
import { renderToStaticMarkup } from "react-dom/server";import { describe, expect, it, vi } from "vite-plus/test"; import { PreviewChromeRow } from "./PreviewChromeRow"; describe("PreviewChromeRow", () => {  it("shows the complete URL while the address bar is not focused", () => {    const markup = renderToStaticMarkup(      <PreviewChromeRow        url="https://example.com/dashboard?mode=edit&tab=1#notes"        loading={false}        loadProgress={0}        canGoBack={false}        canGoForward={false}        refreshDisabled={false}        onBack={vi.fn()}        onForward={vi.fn()}        onRefresh={vi.fn()}        onSubmit={vi.fn()}      />,    );     expect(markup).toContain('value="https://example.com/dashboard?mode=edit&amp;tab=1#notes"');  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t