# test\(web\): update preview tests for the new open and createTab shapes · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/cca9dc83304dbee5c4ceed3fae636b729504521c)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: cca9dc83304dbee5c4ceed3fae636b729504521c

Requested commit: cca9dc83304dbee5c4ceed3fae636b729504521c

Commit: cca9dc83304dbee5c4ceed3fae636b729504521c

Tree: ce8eb2898e6d88ae19838e9c50c19fd8d18bc191

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
test(web): update preview tests for the new open and createTab shapes

`preview.open` now carries the configured default viewport and `createTab`
carries the zoom/appearance defaults, so the call-shape assertions had to move
with them.

PreviewView's test stubs `browserDefaults` directly rather than deepening the
`state/session` mock: the component now reaches `useSettings`, which pulls in
`state/server`, and a test about browser chrome shouldn't drag the settings and
connection graph along with it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

```

## Parents

- [b4777dad6dd7a12f1a89bd9bfd0df3a43d18558f](https://git.cafe/pingdotgg/t3code/commit/b4777dad6dd7a12f1a89bd9bfd0df3a43d18558f?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/cca9dc83304dbee5c4ceed3fae636b729504521c?format=markdown)
