diff --git a/.gitignore b/.gitignore index fed401d..7442e9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ package-lock.json -node_modules/ \ No newline at end of file +node_modules/ +.idea diff --git a/conf/parallel_local.conf.js b/conf/parallel_local.conf.js index fa115b9..91cf755 100644 --- a/conf/parallel_local.conf.js +++ b/conf/parallel_local.conf.js @@ -19,7 +19,7 @@ exports.config = { },{ 'browserName': 'Safari', 'version':'latest', - 'platform': 'macOS Mojave' + 'platform': 'macOS Sonoma' },{ 'browserName': 'MicrosoftEdge', 'version':'latest', diff --git a/package.json b/package.json index cd650f4..3feb555 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,10 @@ "url": "https://github.com/lambdatest/protractor-selenium-sample" }, "dependencies": { - "protractor": "^5.4.2" + "protractor": "^7.0.0" }, "license": "MIT", "devDependencies": { - "cross-env": "^7.0.3" + "cross-env": "^10.1.0" } } diff --git a/specs/single.js b/specs/single.js index 48ba696..2481bd3 100644 --- a/specs/single.js +++ b/specs/single.js @@ -26,7 +26,11 @@ describe('Add todo Lists', function () { var foo = element(by.xpath('//html/body/div/div/div/ul/li[6]/span')); - expect(foo.getText()).toEqual("Yey, Let's add it to list"); + foo.getText().then(function (text) { + expect(text.replace(/\s+/g, ' ').trim()).toEqual("Yey, Let's add it to list"); + }); + + });