Skip to content

Commit cc0c9c9

Browse files
committed
add ui test
1 parent 4319f7c commit cc0c9c9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

plugins/SegmentEditor/tests/UI/SegmentSelectorEditor_spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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('ségmÊnt').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();

plugins/SegmentEditor/tests/UI/expected-screenshots/SegmentSelectorEditorTest_saved_reload.png

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)