Skip to content

Commit

Permalink
add click before typo
Browse files Browse the repository at this point in the history
add click before typo
  • Loading branch information
Peter committed Jan 19, 2022
1 parent d938ec9 commit d577719
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js
Expand Up @@ -201,21 +201,24 @@ describe("SegmentSelectorEditorTest", function () {
it('should display autocomplete dropdown options correctly with lower case', async function() {
await page.click('.expandableSelector .select-wrapper');
await page.waitForSelector('.expandableList');
await page.type('.expandableSelector', 'event');
await page.click('.expandableSelector');
await page.type('input.expandableSelector', 'event');
await page.waitForTimeout(100);
expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('autocomplete_lowercase');
});

it('should display autocomplete dropdown options correctly with upper case', async function() {
await page.click('.expandableSelector');
await page.type('.expandableSelector', '');
await page.type('.expandableSelector', 'EVENT');
await page.type('input.expandableSelector', 'EVENT');
await page.waitForTimeout(100);
expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('autocomplete_uppercase');
});

it('should display autocomplete dropdown options correctly with capitalized', async function() {
await page.click('.expandableSelector');
await page.type('.expandableSelector', '');
await page.type('.expandableSelector', 'Event');
await page.type('input.expandableSelector', 'Event');
await page.waitForTimeout(100);
expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('autocomplete_capitalized');
});
Expand Down

0 comments on commit d577719

Please sign in to comment.