Skip to content

Commit 37df89c

Browse files
author
John Doherty
committed
fixed Mammoth Workwear titleContains bug pointed out by Alex Chapman
1 parent e9864f4 commit 37df89c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page-objects/mammoth-workwear.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919

2020
titleContains: function(expectedTitle) {
2121

22-
return driver.getTitle(function(pageTitle) {
22+
return driver.getTitle().then(function(pageTitle) {
2323
expect(pageTitle).to.contain(expectedTitle);
2424
});
2525
}

0 commit comments

Comments
 (0)