diff --git a/ui/screenshot/getting_started/evaluation_console.js b/ui/screenshot/getting_started/evaluation_console.js new file mode 100644 index 0000000000..70bdbe6358 --- /dev/null +++ b/ui/screenshot/getting_started/evaluation_console.js @@ -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(); + }); +})(); diff --git a/ui/screenshot/getting_started/fixtures/evaluation_console.yml b/ui/screenshot/getting_started/fixtures/evaluation_console.yml new file mode 100644 index 0000000000..dc56aacc31 --- /dev/null +++ b/ui/screenshot/getting_started/fixtures/evaluation_console.yml @@ -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