Skip to content

Commit

Permalink
chore: fix remaining screenshots script issues (#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Oct 6, 2023
1 parent 191d0ac commit 09bdc42
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ui/screenshot/concepts/distributions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { capture } = require('../../screenshot.js');
const { capture, scrollToBottom } = require('../../screenshot.js');

(async () => {
await capture('concepts', 'distributions', async (page) => {
await page.getByRole('link', { name: 'colorscheme' }).click();
await page.getByRole('link', { name: 'Rules' }).click();
await scrollToBottom(page);
});
})();
3 changes: 2 additions & 1 deletion ui/screenshot/concepts/rules.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const { capture } = require('../../screenshot.js');
const { capture, scrollToBottom } = require('../../screenshot.js');

(async () => {
await capture('concepts', 'rules', async (page) => {
await page.getByRole('link', { name: 'colorscheme' }).click();
await page.getByRole('link', { name: 'Rules' }).click();
await scrollToBottom(page);
});
})();
2 changes: 1 addition & 1 deletion ui/screenshot/getting_started/create-rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { capture } = require('../../screenshot.js');
await page.getByRole('link', { name: 'new-login' }).click();
await page.getByRole('link', { name: 'Rules' }).click();
await page.getByRole('button', { name: 'New Rule' }).click();
await page.locator('#segmentKey-select-button').click();
await page.locator('#segmentKey-0-select-button').click();
await page.getByText('all-users').click();
await page.getByLabel('Multi-Variate').check();
});
Expand Down

0 comments on commit 09bdc42

Please sign in to comment.