Skip to content

Commit 397fe5c

Browse files
committed
add / adjust UI tests
1 parent e8f2fc4 commit 397fe5c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ describe("SegmentSelectorEditorTest", function () {
124124
await page.waitForTimeout(250);
125125
}
126126

127-
await page.type('input.edit_segment_name', 'new segment');
127+
await page.type('input.edit_segment_name', 'new șégmênt');
128128
await page.click('.segmentRow0 .segment-or'); // click somewhere else to save new name
129129

130130
await page.waitForTimeout(200);
@@ -151,6 +151,12 @@ describe("SegmentSelectorEditorTest", function () {
151151
expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('saved');
152152
});
153153

154+
it("should find the segment also when searching with diacritics", async function() {
155+
await page.evaluate(() => $('.segmentationContainer .segmentFilter').val('segment').trigger('keyup'));
156+
await page.waitForTimeout(500); // wait for search to be applied
157+
expect(await page.screenshotSelector(selectorsToCapture)).to.matchImage('searched');
158+
});
159+
154160
it("should correctly load the new segment's details when the new segment is edited", async function() {
155161
await page.click('.segmentList li[data-idsegment="4"] .editSegment');
156162
await page.waitForNetworkIdle();

0 commit comments

Comments
 (0)