From 34f8d58c36d19c22dcd6e356860f3ab74cb0e2d8 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 28 Oct 2024 06:32:31 +0100 Subject: [PATCH] search fix --- apps/remixdesktop/test/tests/app/search.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/remixdesktop/test/tests/app/search.test.ts b/apps/remixdesktop/test/tests/app/search.test.ts index 30f1593bdc..8f3ba0a9e7 100644 --- a/apps/remixdesktop/test/tests/app/search.test.ts +++ b/apps/remixdesktop/test/tests/app/search.test.ts @@ -47,7 +47,7 @@ module.exports = { .waitForElementContainsText('*[data-id="search_results"]', 'sender.voted') .waitForElementContainsText('*[data-id="search_results"]', 'read') .elements('css selector', '.search_plugin_search_line', (res) => { - Array.isArray(res.value) && browser.assert.equal(res.value.length, 6) + Array.isArray(res.value) && browser.assert.equal(res.value.length, 7) }) }, 'Should find text with exclude #group1': function (browser: NightwatchBrowser) { browser @@ -56,7 +56,7 @@ module.exports = { .clearValue('*[id="search_include"]').pause(2000) .setValue('*[id="search_include"]', '**').sendKeys('*[id="search_include"]', browser.Keys.ENTER).pause(4000) .elements('css selector', '.search_plugin_search_line', (res) => { - Array.isArray(res.value) && browser.assert.equal(res.value.length, 62) + Array.isArray(res.value) && browser.assert.equal(res.value.length, 63) }) .setValue('*[id="search_exclude"]', ',contracts/**').sendKeys('*[id="search_exclude"]', browser.Keys.ENTER).pause(4000) .elements('css selector', '.search_plugin_search_line', (res) => { @@ -101,7 +101,7 @@ module.exports = { .clearValue('*[id="search_input"]') .setValue('*[id="search_input"]', 'contract').sendKeys('*[id="search_input"]', browser.Keys.ENTER).pause(4000) .elements('css selector', '.search_plugin_search_line', (res) => { - Array.isArray(res.value) && browser.assert.equal(res.value.length, 15) + Array.isArray(res.value) && browser.assert.equal(res.value.length, 16) }) }, 'Should replace text #group1': function (browser: NightwatchBrowser) {