Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis Build fix #192

Open
wants to merge 17 commits into
base: nightwatch
Choose a base branch
from
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ before_script:
- sudo apt-get -qq purge mysql* graphviz*
- sudo apt-get -qq autoremove
- sudo apt-get update
- lsb_release -a
- sudo apt-get --only-upgrade install google-chrome-stable
- sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = [email protected]" > /home/travis/.gitconfig'
- sudo wget -qO ee rt.cx/ee && sudo bash ee
- source /etc/bash_completion.d/ee_auto.rc
- sudo ee -v
- sudo ee update
- sudo ee -v
- sudo lsb_release -a
- sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER [email protected] --pass=ADMINPASS
- sudo tail /var/log/ee/ee.log
- sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER [email protected] --pass=ADMINPASS
- sudo chmod 777 -R /var/www
- sudo nginx -t
- sudo service nginx reload
Expand Down
16 changes: 8 additions & 8 deletions tests/functional/nightwatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"custom_commands_path": "./custom-commands",
"globals_path": "./res/constants.js",

"selenium": {
"start_process": true,
"server_path": "./node_modules/selenium-server/lib/runner/selenium-server-standalone-3.141.0.jar",
"cli_args" : {
"webdriver.chrome.driver" : "./node_modules/chromedriver/lib/chromedriver/chromedriver"
}
},


"webdriver": {
"start_process" : true,
"server_path": "./node_modules/chromedriver/lib/chromedriver/chromedriver",
"cli_args": [
"--verbose"
],
"port": 9515
},

"test_settings": {
"default": {
Expand Down
3 changes: 1 addition & 2 deletions tests/functional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
},
"devDependencies": {
"selenium-server": "3.141.0",
"phantomjs-prebuilt": "2.1.16",
"chromedriver": "2.44.0"
"chromedriver": "2.46.0",
}
}
14 changes: 7 additions & 7 deletions tests/functional/src/purge-method-get-request-page-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ module.exports = {
var data = browser.globals;
browser
.goToAddNewPage()
.clearValue('#title')
.clearValue('textarea[id="content"]')
.setValue('#title', 'test-page')
.setValue('textarea[id="content"]', "test page created for testing")
.clearValue('#post-title-0')
.clearValue('#mce_1')
.setValue('#post-title-0', 'test-page')
.setValue('#mce_1', "test page created for testing")
.pause(1000)
.click('#publish')
.click('button.components-button.editor-post-publish-panel__toggle.is-button.is-primary')
.pause(2000)
.getText("#editable-post-name", function(result) {
.getText("a.components-button.components-notice__action.is-link", function(result) {
urlp = result.value;
console.log(data.URLS.LOGIN + urlp);
// console.log(data.URLS.LOGIN + urlp);
browser
.wplogout()
.pause(500)
Expand Down