Skip to content
Snippets Groups Projects
Commit 357de079 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3410281: Update Drupal Core from ~10.1.0 to ~10.2.0 for Webship...

Issue #3410281: Update Drupal Core from ~10.1.0 to ~10.2.0 for Webship development and automated testing and add Web Patches for PHP 8.3 local patching recipes
parent 9a216eed
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,11 @@ module.exports = {
// if this is not specified, the test source must be passed as the second argument to the test runner.
src_folders: ['tests/step-definitions','node_modules/webship-js/tests/step-definitions'],
// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commands
custom_commands_path: './node_modules/webship-js/lib/custom-commands',
// See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html
custom_commands_path: './node_modules/webship-js/lib/custom-commands',
// See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-assertions.html
custom_assertions_path: './node_modules/webship-js/lib/custom-assertions',
test_runner: {
type: 'cucumber',
......@@ -88,13 +91,13 @@ module.exports = {
function loadServices() {
try {
Services.seleniumServer = require('selenium-server');
} catch (err) {}
} catch (err) { }
try {
Services.chromedriver = require('chromedriver');
} catch (err) {}
} catch (err) { }
try {
Services.geckodriver = require('geckodriver');
} catch (err) {}
} catch (err) { }
}
\ No newline at end of file
......@@ -3,19 +3,72 @@
"version": "10.0.0",
"private": true,
"description": "Webship helps in speeding up the work of web developers to ship websites in a swift way.",
"main": "index.js",
"keywords": [
"Webship",
"Drupal",
"Webship",
"Drupal profile",
"testing",
"Portal for a service"
"Portal for services"
],
"author": "Webship.co",
"license": "GPL-2.0",
"engines": {
"yarn": ">= 1.6",
"node": ">= 18.0"
},
"scripts": {
"test": "nightwatch"
"test": "nightwatch --format html:./tests/reports/index.html",
"phpcs": "phpcs --standard=./.phpcs.xml .",
"phpcbf": "phpcbf --standard=./.phpcs.xml .",
"lint:js": "node ./node_modules/eslint/bin/eslint.js .",
"lint:css": "stylelint \"**/*.css\"",
"lint:yaml": "node ./node_modules/eslint/bin/eslint.js --ext .yml ."
},
"dependencies": { },
"devDependencies": {
"webship-js": "~1.0",
"eslint": "^8.9.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jquery": "^1.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-yml": "^1.2.0",
"glob": "^8.0.3",
"jsdom": "^20.0.0",
"loadjs": "4.2.x",
"minimist": "^1.2.2",
"mkdirp": "^1.0.4",
"normalize.css": "8.0.x",
"postcss": "^8.4.16",
"postcss-header": "^3.0.2",
"postcss-import": "^15.0.0",
"postcss-preset-env": "^8.3.2",
"postcss-pxtorem": "^6.0.0",
"postcss-url": "^10.1.3",
"prettier": "^2.1.2",
"shepherd.js": "~10.0.1",
"sortablejs": "1.15.x",
"stylelint": "^15.5.0",
"stylelint-checkstyle-formatter": "^0.1.2",
"stylelint-config-standard": "^33.0.0",
"stylelint-order": "^6.0.3",
"tabbable": "~6.0.0",
"terser": "^5.14.2",
"terser-webpack-plugin": "^5.3.3",
"underscore": "~1.13.4",
"webpack": "^5.77.0",
"webpack-cli": "^5.0.0"
},
"dependencies": {
"webship-js": "~1"
}
"browserslist": [
"last 2 Chrome major versions",
"last 2 Firefox major versions",
"last 2 Safari major versions",
"last 2 Edge major versions",
"last 2 Opera versions",
"last 2 iOS major versions",
"last 1 ChromeAndroid version",
"last 1 Samsung version",
"Firefox ESR"
]
}
\ No newline at end of file
# Automated testing reports
This diff is collapsed.
[
{
"description": "As a tester\nI want to be able to test the webship.co site\nSo that I know it is working",
"elements": [
{
"description": "",
"id": "example-test-for-webship-js;check-the-webship.co-site",
"keyword": "Scenario",
"line": 6,
"name": "Check the webship.co site",
"steps": [
{
"keyword": "Before",
"hidden": true,
"result": {
"status": "passed",
"duration": 3380158803
}
},
{
"arguments": [],
"keyword": "Given ",
"line": 7,
"name": "I go to \"https://webship.co\"",
"match": {
"location": "tests/step-definitions/webship.js:5"
},
"result": {
"status": "passed",
"duration": 716341770
}
},
{
"arguments": [],
"keyword": "Then ",
"line": 8,
"name": "I should see \"Webship.co\"",
"match": {
"location": "tests/step-definitions/webship.js:9"
},
"result": {
"status": "passed",
"duration": 109572978
}
},
{
"keyword": "After",
"hidden": true,
"result": {
"status": "passed",
"duration": 164629689
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "example-test-for-webship-js",
"line": 1,
"keyword": "Feature",
"name": "Example test for webship-js",
"tags": [],
"uri": "tests/features/check-webshipco-site.feature"
}
]
\ No newline at end of file
......@@ -5,15 +5,3 @@ const {Then} = require('@cucumber/cucumber');
When(/^I navigate to "([^"]*)?"$/, function( url) {
return browser.url(url);
});
When("I put username as {string}", function(string) {
return browser.setValue('input[type=text]',string);
});
When("I put password as {string}", function(string) {
return browser.setValue('input[type=password]',string);
});
When("I click on Login button",function(){
return browser.click('input[type=submit]')
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment