Skip to content

Commit 3dfe863

Browse files
committed
chore: New doc images
1 parent 846c27b commit 3dfe863

File tree

6 files changed

+16
-882
lines changed

6 files changed

+16
-882
lines changed

cypress/e2e/image_tests.cy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ describe("Documentation Page Images", () => {
3131
{ url: "/docs/doc-emojis-special-chars", name: "Special Chars and emojis" },
3232
{ url: "/docs/doc-render-console", name: "Render Console Output" },
3333
{ url: "/docs/doc-typescript", name: "Typescript" },
34+
{ url: "/docs/doc-transform", name: "Transform Functions" },
3435
{ url: "/docs/doc-cli-install-quick-start", name: "CLI Quick Start" },
3536
{ url: "/docs/doc-cli-brew", name: "CLI Homebrew" }
3637
];

cypress/e2e/page_tests.cy.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ describe("Testing Each Documentation Page", () => {
123123
"Change table title",
124124
"Uninstallation"
125125
]
126+
},
127+
{
128+
title: "Transform Functions",
129+
headlines: [
130+
"Basic String Transform",
131+
"Currency Formatting"
132+
]
126133
}
127134
];
128135

@@ -146,6 +153,12 @@ describe("Testing Each Documentation Page", () => {
146153
// Verify screenshot presence
147154
cy.get('img[alt="Screenshot"]').should('have.length.at.least', 2);
148155
}
156+
157+
// Special check for Transform Functions page
158+
if (page.title === "Transform Functions") {
159+
// Verify screenshot presence - should have 2 screenshots
160+
cy.get('img[alt="Screenshot"]').should('have.length', 2);
161+
}
149162
});
150163
});
151164
});

docs/doc-transform.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ p.addRow({ original: 'test', uppercase: 'test' });
3131

3232
p.printTable();
3333
```
34-
35-
The `uppercase` column displays the transformed values while the original data remains unchanged.
34+
<img alt="Screenshot" src={useBaseUrl('img/examples/doc-transform/ExampleUpper.png')}/>
3635

3736
## Currency Formatting
3837

@@ -62,4 +61,4 @@ p.addRows([
6261
p.printTable();
6362
```
6463

65-
This transforms raw numbers like `3.5` into formatted currency like `$3.50`.
64+
<img alt="Screenshot" src={useBaseUrl('img/examples/doc-transform/ExamplePrice.png')}/>

0 commit comments

Comments
 (0)