# test.build/configuration/strings/browser.strings.test.ts

> 22 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-build-configuration-strings-browser-strings-test-ts
Source text: https://banes-lab.com/source/testing/test.build/configuration/strings/browser.strings.test.ts.txt

Listed in [test.build/configuration/strings](https://banes-lab.com/api/source/testing/test.build/configuration/strings.md), after [test.build/configuration/strings/asset.strings.test.ts](https://banes-lab.com/source/testing/test.build/configuration/strings/asset.strings.test.ts.md) and before [test.build/configuration/strings/catalog.strings.test.ts](https://banes-lab.com/source/testing/test.build/configuration/strings/catalog.strings.test.ts.md).

## Contained in

- [test.build/configuration/strings](https://banes-lab.com/anatomy/testing/folder-testing-test-build-configuration-strings.md)

## Source

```typescript
import {
    NOT_TEXT_MESSAGE,
    SOCKET_FAILED,
    browserStartFailed,
    consoleEcho,
    noReply,
    notObjectMessage,
    protocolFailed,
    socketClosed,
} from "@banes-lab/build-scripts/configuration/strings/browser.strings.ts";
import { describe, expect, it } from "vitest";

describe("the browser adapter errors", () => {
    it("name the method, the payload or the wait each failure is about", () => {
        expect([SOCKET_FAILED, NOT_TEXT_MESSAGE].every((text) => text.startsWith("browser adapter: "))).toBe(true);
        expect(protocolFailed("Page.navigate", "denied")).toBe("browser adapter: Page.navigate failed: denied");
        expect(socketClosed("Page.navigate")).toContain("closed while Page.navigate was pending");
        expect(notObjectMessage("[]")).toContain("not an object: []");
        expect(noReply("Page.navigate", 50)).toContain("got no reply within 50 ms");
        expect(consoleEcho("hello")).toBe("  · hello\n");
        expect(browserStartFailed("chrome", "ENOENT")).toBe("browser factory: chrome did not start: ENOENT\n");
    });
});
```
