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
13 changes: 7 additions & 6 deletions test/fidelity/cases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,36 @@ const geistMono = (family: string): FontFile[] => [
const nextjs = [...geist('GeistSans'), ...geistMono('Geist Mono')]

/**
* The sections to compare. Selectors may use the hashed class names of the
* page, since snapshots are only captured again on purpose, see `capture.ts`.
* The sections to compare. Snapshots are only captured again on purpose, see
* `capture.ts`, but selectors avoid the hashed class names of the pages,
* which change with each deployment.
*/
export const cases: FidelityCase[] = [
{
name: 'nextjs-hero',
url: 'https://nextjs.org/',
selector: '[class*="_intro"]',
selector: 'main > div > section:nth-of-type(1)',
width: 1280,
fonts: nextjs,
},
{
name: 'nextjs-features',
url: 'https://nextjs.org/',
selector: 'section[class*="fXK_Ja_root"]',
selector: 'main > div > section:nth-of-type(2) > div:nth-of-type(2) > ul',
width: 1280,
fonts: nextjs,
},
{
name: 'nextjs-showcase',
url: 'https://nextjs.org/',
selector: 'section[class*="enIFoq_root"]',
selector: 'main > div > section:nth-of-type(4) > div:nth-of-type(1)',
width: 1280,
fonts: nextjs,
},
{
name: 'nextjs-footer',
url: 'https://nextjs.org/',
selector: 'footer[class*="_footer"]',
selector: 'footer',
width: 1280,
fonts: nextjs,
},
Expand Down
Binary file modified test/fidelity/cases/nextjs-features/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/fidelity/cases/nextjs-features/snapshot.json

Large diffs are not rendered by default.

Binary file modified test/fidelity/cases/nextjs-footer/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/fidelity/cases/nextjs-footer/snapshot.json

Large diffs are not rendered by default.

Binary file modified test/fidelity/cases/nextjs-hero/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/fidelity/cases/nextjs-hero/snapshot.json

Large diffs are not rendered by default.

Binary file modified test/fidelity/cases/nextjs-showcase/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/fidelity/cases/nextjs-showcase/snapshot.json

Large diffs are not rendered by default.

Loading