-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix scrollToBottom for screenshots (#1911)
* chore: fix scrollToBottom for screenshots * chore: increase sleep by 1s
- Loading branch information
1 parent
929bdc3
commit b7cc760
Showing
4 changed files
with
16 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
const { capture } = require('../../screenshot.js'); | ||
const { capture, scrollToBottom } = require('../../screenshot.js'); | ||
|
||
(async () => { | ||
await capture('concepts', 'constraints', async (page) => { | ||
await page.getByRole('link', { name: 'Segments' }).click(); | ||
await page.getByRole('link', { name: 'new-users' }).click(); | ||
await page.evaluate(() => | ||
// scroll to bottom of page to show all constraints | ||
window.scrollTo(0, document.documentElement.scrollHeight) | ||
); | ||
await scrollToBottom(page); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
const { capture } = require('../../screenshot.js'); | ||
const { capture, scrollToBottom } = require('../../screenshot.js'); | ||
|
||
(async () => { | ||
await capture('concepts', 'rollouts', async (page) => { | ||
await page.getByRole('link', { name: 'new-contact-page' }).click(); | ||
await page.evaluate(() => | ||
// scroll to bottom of page to show all rollouts | ||
window.scrollTo(0, document.documentElement.scrollHeight) | ||
); | ||
await scrollToBottom(page); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
const { capture } = require('../../screenshot.js'); | ||
const { capture, scrollToBottom } = require('../../screenshot.js'); | ||
|
||
(async () => { | ||
await capture('concepts', 'variants', async (page) => { | ||
await page.getByRole('link', { name: 'colorscheme' }).click(); | ||
await page.evaluate(() => | ||
// scroll to bottom of page to show all variants | ||
window.scrollTo(0, document.documentElement.scrollHeight) | ||
); | ||
await scrollToBottom(page); | ||
}); | ||
})(); |