Skip to content

Commit

Permalink
chore: add missing eval console screen
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Jul 25, 2023
1 parent fa13a4f commit c6b074b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ui/screenshot/getting_started/evaluation_console.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const { capture } = require('../../screenshot.js');

(async () => {
await capture('getting_started', 'evaluation_console', async (page) => {
await page.getByRole('link', { name: 'Console' }).click();
await page.locator('#flagKey-select-button').click();
await page.getByRole('option', { name: 'new-login New Login' }).click();
await page.getByPlaceholder('{}').click();
await page.getByRole('button', { name: 'Evaluate', exact: true }).click();
});
})();
20 changes: 20 additions & 0 deletions ui/screenshot/getting_started/fixtures/evaluation_console.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace: default
flags:
- key: new-login
name: New Login
description: Enables the new login page for users
enabled: true
variants:
- key: big-blue-login-button
- key: big-red-login-button
rules:
- segment: all-users
rank: 1
distributions:
- variant: big-blue-login-button
rollout: 50
- variant: big-red-login-button
rollout: 50
segments:
- key: all-users
name: All Users

0 comments on commit c6b074b

Please sign in to comment.