Skip to content

Commit

Permalink
feat(ui/screenshot): capture create_rule
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMac committed Jul 17, 2023
1 parent 749714e commit acd312b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ui/screenshot/create-rule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const { capture } = require('../screenshot.js');

(async() => {
await capture('create_rule', async (page) => {
await page.getByRole('link', { name: 'new-login' }).click();
await page.getByRole('link', { name: 'Evaluation' }).click();
await page.getByRole('button', { name: 'New Rule' }).click();
await page.locator('#segmentKey-select-button').click();
await page.getByText('all-users').click();
await page.getByLabel('Multi-Variant').check();
});
})();
11 changes: 11 additions & 0 deletions ui/screenshot/fixtures/create_rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace: default
flags:
- key: new-login
name: New Login
description: Enables the new login page for users
variants:
- key: big-blue-login-button
- key: big-red-login-button
segments:
- key: all-users
name: All Users

0 comments on commit acd312b

Please sign in to comment.