From 0cd43d674da5802425a3cda56b0689524beb1c2c Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 18 Aug 2018 11:12:59 +0300 Subject: [PATCH] tests(search): description to asserts --- tests/seach.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/seach.test.js b/tests/seach.test.js index cae97f7..bafcc9b 100644 --- a/tests/seach.test.js +++ b/tests/seach.test.js @@ -21,7 +21,7 @@ describe("search", function() { await app.client.click('#search') await app.client.waitForExist('.torrentRow .torrentName') const results = (await app.client.$$('.torrentRow .torrentName')).length - assert(results >= 1) + assert(results >= 1, 'default search on Roblox must return Roblox_setup record') }) it("sphinx particial search", async function() { @@ -30,7 +30,7 @@ describe("search", function() { await app.client.click('#search') await app.client.waitForExist('.torrentRow .torrentName') const results = (await app.client.$$('.torrentRow .torrentName')).length - assert(results >= 1) + assert(results >= 1, 'particial word search must find string') }) it("magnet search", async function() { @@ -39,6 +39,6 @@ describe("search", function() { await app.client.click('#search') await app.client.waitForExist('.torrentRow .torrentName') const results = (await app.client.$$('.torrentRow .torrentName')).length - assert(results == 1) + assert(results >= 1, 'magnet search must return 1 or more record') }) });