From 8d79e2c68aab2c8d2bab8c711f49fea8fb4d533b Mon Sep 17 00:00:00 2001 From: Tasneem Natshah Date: Sat, 17 Aug 2024 15:55:06 +0300 Subject: [PATCH] Clear up commented code #169 --- tests/step-definitions/webship.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/step-definitions/webship.js b/tests/step-definitions/webship.js index 577522b..c5760ce 100755 --- a/tests/step-definitions/webship.js +++ b/tests/step-definitions/webship.js @@ -734,7 +734,7 @@ Then(/^the "([^"]*)?" element should not contain "([^"]*)?"$/, function (selecto * */ When(/^(I|we)* attach the file "([^"]*)?" to "([^"]*)?"$/, function (pronoundCase, fileUrl, element) { - // browser.setValue(element, require('path').resolve(__dirname + fileUrl)); + }); /** @@ -937,13 +937,9 @@ Then(/^(I|we)* should not see text matching "([^"]*)?"$/, function (pronoundCase * */ Then(/^(I|we)* should see text matching "([^"]*)?" in the "([^"]*)?" element$/, function (pronoundCase, textPattern, element) { - // return browser.elements('css selector', element, function (elements) { - // elements.value.forEach(function (elementsObj) { return this.shouldSeePattern = function (browser) { browser.assert.textMatches(element, textPattern); }; - // }); - // }); }); /** @@ -953,15 +949,9 @@ Then(/^(I|we)* should see text matching "([^"]*)?" in the "([^"]*)?" element$/, * */ Then(/^(I|we)* should not see text matching "([^"]*)?" in the "([^"]*)?" element$/, function (pronoundCase, textPattern, element) { - - // return browser.elements('css selector', element, function (elements) { - // elements.value.forEach(function (elementsObj) { return this.shouldSeePattern = function (browser) { browser.assert.not.textMatches(element, textPattern); }; - // browser.assert.not.textMatches(elementsObj, textPattern); - // }); - // }); }); /**