Skip to content

Commit

Permalink
Clear up commented code #169
Browse files Browse the repository at this point in the history
  • Loading branch information
TasneemNatshah committed Aug 17, 2024
1 parent 7065d1e commit 8d79e2c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions tests/step-definitions/webship.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

});

/**
Expand Down Expand Up @@ -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);
};
// });
// });
});

/**
Expand All @@ -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);
// });
// });
});

/**
Expand Down

0 comments on commit 8d79e2c

Please sign in to comment.