From 03f4161f0824fc099599ee9e53360b22dfd802a6 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Mon, 18 Mar 2019 18:55:05 +0530 Subject: [PATCH 01/17] Remove selenium port --- tests/functional/nightwatch.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/functional/nightwatch.json b/tests/functional/nightwatch.json index 1f60cff0..b5c9843b 100644 --- a/tests/functional/nightwatch.json +++ b/tests/functional/nightwatch.json @@ -16,8 +16,6 @@ "test_settings": { "default": { "launch_url": "http://localhost", - "selenium_port": 4444, - "selenium_host": "localhost", "silent": true, "desiredCapabilities": { "browserName": "chrome", From b705273c38bf5f38a58eec2ba74e30fed185217a Mon Sep 17 00:00:00 2001 From: juhi123 Date: Mon, 18 Mar 2019 18:58:01 +0530 Subject: [PATCH 02/17] test --- tests/functional/res/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/res/constants.js b/tests/functional/res/constants.js index f10cc92b..c2fd67e6 100644 --- a/tests/functional/res/constants.js +++ b/tests/functional/res/constants.js @@ -1,6 +1,6 @@ /* @author : Prabuddha Chakraborty -This is a standalone scripts for centralized management of all constants like Admin Username and Password. +This is a standalone scripts for centralized management of all constants like Admin Username and Password.juhi */ module.exports ={ From 83e531182732c34725995b4d0e83e75127002b53 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Mon, 18 Mar 2019 19:10:54 +0530 Subject: [PATCH 03/17] update nightwatch.json --- tests/functional/nightwatch.json | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/functional/nightwatch.json b/tests/functional/nightwatch.json index b5c9843b..f1be4b94 100644 --- a/tests/functional/nightwatch.json +++ b/tests/functional/nightwatch.json @@ -3,19 +3,20 @@ "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": { "launch_url": "http://localhost", + "selenium_port": 4444, + "selenium_host": "localhost", "silent": true, "desiredCapabilities": { "browserName": "chrome", From 12f475e1862b77a9dc2266a42ef4066a964d51a3 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Mon, 18 Mar 2019 19:26:19 +0530 Subject: [PATCH 04/17] change version --- tests/functional/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/package.json b/tests/functional/package.json index fdc75faf..d1fa978b 100644 --- a/tests/functional/package.json +++ b/tests/functional/package.json @@ -17,6 +17,6 @@ "devDependencies": { "selenium-server": "3.141.0", "phantomjs-prebuilt": "2.1.16", - "chromedriver": "2.44.0" + "chromedriver": "2.46.0" } } From 06d08136d3b2c8da06be68e30734dac62d7e7445 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Mon, 18 Mar 2019 19:40:38 +0530 Subject: [PATCH 05/17] change version --- tests/functional/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/package.json b/tests/functional/package.json index d1fa978b..6e3a2734 100644 --- a/tests/functional/package.json +++ b/tests/functional/package.json @@ -17,6 +17,6 @@ "devDependencies": { "selenium-server": "3.141.0", "phantomjs-prebuilt": "2.1.16", - "chromedriver": "2.46.0" + "chromedriver": "2.48.0" } } From 9fbe38d82598f66d1b54ef217c4dafbd04ae917f Mon Sep 17 00:00:00 2001 From: juhi123 Date: Tue, 19 Mar 2019 15:26:32 +0530 Subject: [PATCH 06/17] chrome test --- tests/functional/nightwatch.json | 1 + tests/functional/package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/functional/nightwatch.json b/tests/functional/nightwatch.json index f1be4b94..9c734912 100644 --- a/tests/functional/nightwatch.json +++ b/tests/functional/nightwatch.json @@ -12,6 +12,7 @@ }, + "test_settings": { "default": { "launch_url": "http://localhost", diff --git a/tests/functional/package.json b/tests/functional/package.json index 6e3a2734..5b2600ca 100644 --- a/tests/functional/package.json +++ b/tests/functional/package.json @@ -17,6 +17,7 @@ "devDependencies": { "selenium-server": "3.141.0", "phantomjs-prebuilt": "2.1.16", - "chromedriver": "2.48.0" + "chromedriver": "2.46.0", + "geckodriver": "1.16.0" } } From 7a08f28f2e47dcb4d4ed2189fb3eaac1d4987a99 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Tue, 19 Mar 2019 15:36:00 +0530 Subject: [PATCH 07/17] change selenium version --- tests/functional/nightwatch.json | 2 +- tests/functional/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/nightwatch.json b/tests/functional/nightwatch.json index 9c734912..a59ea41e 100644 --- a/tests/functional/nightwatch.json +++ b/tests/functional/nightwatch.json @@ -5,7 +5,7 @@ "selenium": { "start_process": true, - "server_path": "./node_modules/selenium-server/lib/runner/selenium-server-standalone-3.141.0.jar", + "server_path": "./node_modules/selenium-server/lib/runner/selenium-server-standalone-3.14.0.jar", "cli_args" : { "webdriver.chrome.driver" : "./node_modules/chromedriver/lib/chromedriver/chromedriver" } diff --git a/tests/functional/package.json b/tests/functional/package.json index 5b2600ca..323cc51d 100644 --- a/tests/functional/package.json +++ b/tests/functional/package.json @@ -15,7 +15,7 @@ "nightwatch": "^1.0.19" }, "devDependencies": { - "selenium-server": "3.141.0", + "selenium-server": "3.14.0", "phantomjs-prebuilt": "2.1.16", "chromedriver": "2.46.0", "geckodriver": "1.16.0" From c1f2f85a55a5807dcf1f06731c2df8eed9f36086 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Tue, 19 Mar 2019 16:06:30 +0530 Subject: [PATCH 08/17] find ubuntu version --- .travis.yml | 1 + tests/functional/nightwatch.json | 2 +- tests/functional/package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b4c675d7..a5321c36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,7 @@ before_script: - sudo apt-get -qq purge mysql* graphviz* - sudo apt-get -qq autoremove - sudo apt-get update +- lsb_release -a - sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = root@localhost.com" > /home/travis/.gitconfig' - sudo wget -qO ee rt.cx/ee && sudo bash ee - source /etc/bash_completion.d/ee_auto.rc diff --git a/tests/functional/nightwatch.json b/tests/functional/nightwatch.json index a59ea41e..9c734912 100644 --- a/tests/functional/nightwatch.json +++ b/tests/functional/nightwatch.json @@ -5,7 +5,7 @@ "selenium": { "start_process": true, - "server_path": "./node_modules/selenium-server/lib/runner/selenium-server-standalone-3.14.0.jar", + "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" } diff --git a/tests/functional/package.json b/tests/functional/package.json index 323cc51d..5b2600ca 100644 --- a/tests/functional/package.json +++ b/tests/functional/package.json @@ -15,7 +15,7 @@ "nightwatch": "^1.0.19" }, "devDependencies": { - "selenium-server": "3.14.0", + "selenium-server": "3.141.0", "phantomjs-prebuilt": "2.1.16", "chromedriver": "2.46.0", "geckodriver": "1.16.0" From 83f98c2d54de78afc9e654dc68ad737da3c91f7f Mon Sep 17 00:00:00 2001 From: juhi123 Date: Tue, 19 Mar 2019 16:10:57 +0530 Subject: [PATCH 09/17] update chrome --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index a5321c36..1ed67bcc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,7 @@ before_script: - 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 = root@localhost.com" > /home/travis/.gitconfig' - sudo wget -qO ee rt.cx/ee && sudo bash ee - source /etc/bash_completion.d/ee_auto.rc From f9f6596e8287f9c921c6cfa33a1ddf0f12010b77 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Tue, 19 Mar 2019 16:47:22 +0530 Subject: [PATCH 10/17] Update HTML selectors because of Gutenberg --- .../src/purge-method-get-request-page-test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/functional/src/purge-method-get-request-page-test.js b/tests/functional/src/purge-method-get-request-page-test.js index 87a180b5..fc09e1bc 100644 --- a/tests/functional/src/purge-method-get-request-page-test.js +++ b/tests/functional/src/purge-method-get-request-page-test.js @@ -26,14 +26,14 @@ 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('p.wp-block-paragraph.editor-rich-text__tinymce.mce-content-body') + .setValue('#post-title-0', 'test-page') + .setValue('p.wp-block-paragraph.editor-rich-text__tinymce.mce-content-body', "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); browser From 82facf104852954774c5afc157fa034c58b3bce3 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Tue, 19 Mar 2019 17:04:26 +0530 Subject: [PATCH 11/17] Update HTML selectors --- .../functional/src/purge-method-get-request-page-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/functional/src/purge-method-get-request-page-test.js b/tests/functional/src/purge-method-get-request-page-test.js index fc09e1bc..9cfd0ac1 100644 --- a/tests/functional/src/purge-method-get-request-page-test.js +++ b/tests/functional/src/purge-method-get-request-page-test.js @@ -27,15 +27,15 @@ module.exports = { browser .goToAddNewPage() .clearValue('#post-title-0') - .clearValue('p.wp-block-paragraph.editor-rich-text__tinymce.mce-content-body') + .clearValue('#mce_1') .setValue('#post-title-0', 'test-page') - .setValue('p.wp-block-paragraph.editor-rich-text__tinymce.mce-content-body', "test page created for testing") + .setValue('#mce_1', "test page created for testing") .pause(1000) - .click('button.components-button.editor-post-publish-panel__toggle.is-button is-primary') + .click('button.components-button.editor-post-publish-panel__toggle.is-button.is-primary') .pause(2000) .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) From 14a690b552d7d718c877a29d1b0ce0fc7a84534d Mon Sep 17 00:00:00 2001 From: juhi123 Date: Tue, 19 Mar 2019 17:32:11 +0530 Subject: [PATCH 12/17] Remove phantom js from package.json --- tests/functional/package.json | 2 -- tests/functional/res/constants.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/functional/package.json b/tests/functional/package.json index 5b2600ca..81c441fe 100644 --- a/tests/functional/package.json +++ b/tests/functional/package.json @@ -16,8 +16,6 @@ }, "devDependencies": { "selenium-server": "3.141.0", - "phantomjs-prebuilt": "2.1.16", "chromedriver": "2.46.0", - "geckodriver": "1.16.0" } } diff --git a/tests/functional/res/constants.js b/tests/functional/res/constants.js index c2fd67e6..f10cc92b 100644 --- a/tests/functional/res/constants.js +++ b/tests/functional/res/constants.js @@ -1,6 +1,6 @@ /* @author : Prabuddha Chakraborty -This is a standalone scripts for centralized management of all constants like Admin Username and Password.juhi +This is a standalone scripts for centralized management of all constants like Admin Username and Password. */ module.exports ={ From e8955999f976c6ea436639f2a12e70b27961ddb0 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Wed, 15 May 2019 19:01:34 +0530 Subject: [PATCH 13/17] Update email --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1ed67bcc..102db294 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ before_script: - source /etc/bash_completion.d/ee_auto.rc - sudo ee -v - sudo lsb_release -a -- sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER --email=prabuddha.chakraborty@rtcamp.com --pass=ADMINPASS +- sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER --email=juhi.saxena@rtcamp.com --pass=ADMINPASS - sudo chmod 777 -R /var/www - sudo nginx -t - sudo service nginx reload From 494a0b7dcae3bc9dd327687337d9d26be63734eb Mon Sep 17 00:00:00 2001 From: juhi123 Date: Wed, 15 May 2019 19:15:19 +0530 Subject: [PATCH 14/17] check logs --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 102db294..b6102343 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ before_script: - source /etc/bash_completion.d/ee_auto.rc - sudo ee -v - sudo lsb_release -a +- sudo tail /var/log/ee/ee.log - sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER --email=juhi.saxena@rtcamp.com --pass=ADMINPASS - sudo chmod 777 -R /var/www - sudo nginx -t From 5e3cd04f4cb1d9b482d5534b6daeb25211a9eaea Mon Sep 17 00:00:00 2001 From: juhi123 Date: Fri, 17 May 2019 17:40:04 +0530 Subject: [PATCH 15/17] Update ee command --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b6102343..646bd3b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ before_script: - sudo ee -v - sudo lsb_release -a - sudo tail /var/log/ee/ee.log -- sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER --email=juhi.saxena@rtcamp.com --pass=ADMINPASS +- sudo ee site create wp.localtest.me --type=wp --admin-user=ADMINUSER --admin-email=juhi.saxena@rtcamp.com --admin-pass=ADMINPASS - sudo chmod 777 -R /var/www - sudo nginx -t - sudo service nginx reload From 437af78b09a2181baa15e617691cbcc81762d8a5 Mon Sep 17 00:00:00 2001 From: juhi123 Date: Fri, 17 May 2019 17:50:10 +0530 Subject: [PATCH 16/17] Revert back to old --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 646bd3b2..b6102343 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ before_script: - sudo ee -v - sudo lsb_release -a - sudo tail /var/log/ee/ee.log -- sudo ee site create wp.localtest.me --type=wp --admin-user=ADMINUSER --admin-email=juhi.saxena@rtcamp.com --admin-pass=ADMINPASS +- sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER --email=juhi.saxena@rtcamp.com --pass=ADMINPASS - sudo chmod 777 -R /var/www - sudo nginx -t - sudo service nginx reload From e24e8b60349dec5f359a19444bf98b1e98d2dcbd Mon Sep 17 00:00:00 2001 From: juhi123 Date: Wed, 22 May 2019 18:01:22 +0530 Subject: [PATCH 17/17] Update ee --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index b6102343..1305f87f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,8 @@ before_script: - 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 tail /var/log/ee/ee.log - sudo ee site create wp.localtest.me --wpfc --user=ADMINUSER --email=juhi.saxena@rtcamp.com --pass=ADMINPASS