Skip to content
Snippets Groups Projects
Commit f4c59063 authored by Tasneem Natshah's avatar Tasneem Natshah
Browse files

Issue #3339611: Fix install package google-chrome-stable error after upgrade into 109 (Circle CI)

parent 7e7560fc
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@ commands:
name: Usefull must have utils
command: |
sudo apt -qq update
sudo apt install docker-buildx-plugin
sudo apt -qqy upgrade
sudo apt -yqq install vim links lynx git diffutils htop curl wget p7zip-full unzip zip sed gcc g++ make libfreetype6-dev libaio1 libaio-dev libonig-dev libpng-dev mysql-client default-mysql-client
sudo apt -yqq install xvfb libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libnss3
......
const Services = {}; loadServices();
// _ _ _ _ _ _ _
// | \ | |(_) | | | | | | | |
// | \| | _ __ _ | |__ | |_ __ __ __ _ | |_ ___ | |__
// | . ` || | / _` || '_ \ | __|\ \ /\ / / / _` || __| / __|| '_ \
// | |\ || || (_| || | | || |_ \ V V / | (_| || |_ | (__ | | | |
// \_| \_/|_| \__, ||_| |_| \__| \_/\_/ \__,_| \__| \___||_| |_|
// __/ |
// |___/
module.exports = {
// An array of folders (excluding subfolders) where your tests are located;
// 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/working-with-page-objects/
page_objects_path: '',
// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commands
custom_commands_path: '',
src_folders: ['node_modules/webship-js/tests/step-definitions'],
// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-assertions
custom_assertions_path: '',
// See https://nightwatchjs.org/guide/#external-globals
globals_path: '',
webdriver: {},
// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commands
custom_commands_path: './node_modules/webship-js/lib/custom-commands',
test_runner: {
type: 'cucumber',
options: {
feature_path: 'tests/features/*.feature',
additional_config: '',
parallel: 0
}
parallel: 2,
},
},
test_settings: {
default: {
launch_url: "http://webship.test",
launch_url: 'http://webship.test/',
selenium_port: 4444,
selenium_host: "127.0.0.1",
selenium_host: '127.0.0.1',
silent: true,
screenshots: {
enabled: true,
path: "./reports/screenshots"
},
desiredCapabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
// More info on Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/
//
// w3c:false tells Chromedriver to run using the legacy JSONWire protocol (not required in Chrome 78)
w3c: false,
args: [
'--headless',
'--start-maximized',
'--disable-gpu',
'--window-size=1600,1200',
'--no-sandbox',
'--disable-dev-shm-usage',
'--disable-setuid-sandbox',
'--disable-web-security',
'--DNS-prefetch-disable',
'--disable-translate',
'--ignore-certificate-errors',
'--test-type',
'--disable-extensions',
'--incognito',
'--disable-infobars',
'--remote-debugging-port=9222',
'--allowed-ips=*',
'--whitelisted-ips=*',
'--allow-insecure-localhost'
]
}
}
},
safari: {
desiredCapabilities: {
browserName: 'safari',
alwaysMatch: {
acceptInsecureCerts: false
}
enabled: true,
path: './reports/screenshots',
},
webdriver: {
start_process: true,
server_path: ''
}
},
firefox: {
desiredCapabilities: {
browserName: 'firefox',
alwaysMatch: {
acceptInsecureCerts: true,
'moz:firefoxOptions': {
args: [
// '-headless',
// '-verbose'
]
}
}
},
webdriver: {
start_process: true,
server_path: '',
cli_args: [
// very verbose geckodriver logs
// '-vv'
]
}
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
......@@ -144,194 +54,34 @@ module.exports = {
'--remote-debugging-port=9222',
'--allowed-ips=*',
'--whitelisted-ips=*',
'--allow-insecure-localhost'
]
}
'--allow-insecure-localhost',
],
},
},
webdriver: {
start_process: true,
server_path: '',
cli_args: [
// --verbose
]
}
},
},
edge: {
desiredCapabilities: {
browserName: 'MicrosoftEdge',
'ms:edgeOptions': {
w3c: true,
// More info on EdgeDriver: https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/capabilities-edge-options
args: [
//'--headless'
]
}
selenium_server: {
// Selenium Server is running locally and is managed by Nightwatch
selenium: {
start_process: true,
port: 4444,
server_path: (Services.seleniumServer ? Services.seleniumServer.path : ''),
cli_args: {
'webdriver.gecko.driver': (Services.geckodriver ? Services.geckodriver.path : ''),
'webdriver.chrome.driver': (Services.chromedriver ? Services.chromedriver.path : ''),
},
webdriver: {
start_process: true,
// Download msedgedriver from https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/
// and set the location below:
server_path: '',
cli_args: [
// --verbose
]
}
},
//////////////////////////////////////////////////////////////////////////////////
// Configuration for when using cucumber-js (https://cucumber.io) |
// |
// It uses the bundled examples inside the nightwatch examples folder; feel free |
// to adapt this to your own project needs |
//////////////////////////////////////////////////////////////////////////////////
'cucumber-js': {
src_folders: ['examples/cucumber-js/features/step_definitions'],
test_runner: {
// set cucumber as the runner
type: 'cucumber',
// define cucumber specific options
options: {
//set the feature path
feature_path: 'node_modules/nightwatch/examples/cucumber-js/*/*.feature'
// start the webdriver session automatically (enabled by default)
// auto_start_session: true
// use parallel execution in Cucumber
// parallel: 2 // set number of workers to use (can also be defined in the cli as --parallel 2
}
}
},
},
//////////////////////////////////////////////////////////////////////////////////
// Configuration for when using the browserstack.com cloud service |
// |
// Please set the username and access key by setting the environment variables: |
// - BROWSERSTACK_USER |
// - BROWSERSTACK_KEY |
// .env files are supported |
//////////////////////////////////////////////////////////////////////////////////
browserstack: {
selenium: {
host: 'hub-cloud.browserstack.com',
port: 443
},
// More info on configuring capabilities can be found on:
// https://www.browserstack.com/automate/capabilities?tag=selenium-4
desiredCapabilities: {
'bstack:options': {
userName: '${BROWSERSTACK_USER}',
accessKey: '${BROWSERSTACK_KEY}'
}
'selenium.chrome': {
extends: 'selenium_server',
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
w3c: true,
},
disable_error_log: true,
webdriver: {
timeout_options: {
timeout: 15000,
retry_attempts: 3
},
keep_alive: true,
start_process: false
}
},
'browserstack.local': {
extends: 'browserstack',
desiredCapabilities: {
'browserstack.local': true
}
},
'browserstack.chrome': {
extends: 'browserstack',
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
w3c: true
}
}
},
'browserstack.firefox': {
extends: 'browserstack',
desiredCapabilities: {
browserName: 'firefox'
}
},
'browserstack.ie': {
extends: 'browserstack',
desiredCapabilities: {
browserName: 'internet explorer',
browserVersion: '11.0'
}
},
'browserstack.safari': {
extends: 'browserstack',
desiredCapabilities: {
browserName: 'safari'
}
},
'browserstack.local_chrome': {
extends: 'browserstack.local',
desiredCapabilities: {
browserName: 'chrome'
}
},
'browserstack.local_firefox': {
extends: 'browserstack.local',
desiredCapabilities: {
browserName: 'firefox'
}
},
//////////////////////////////////////////////////////////////////////////////////
// Configuration for when using the Selenium service, either locally or remote, |
// like Selenium Grid |
//////////////////////////////////////////////////////////////////////////////////
selenium_server: {
// Selenium Server is running locally and is managed by Nightwatch
selenium: {
start_process: true,
port: 4444,
server_path: (Services.seleniumServer ? Services.seleniumServer.path : ''),
cli_args: {
'webdriver.gecko.driver': (Services.geckodriver ? Services.geckodriver.path : ''),
'webdriver.chrome.driver': (Services.chromedriver ? Services.chromedriver.path : '')
}
}
},
'selenium.chrome': {
extends: 'selenium_server',
desiredCapabilities: {
browserName: 'chrome',
chromeOptions: {
w3c: true
}
}
},
'selenium.firefox': {
extends: 'selenium_server',
desiredCapabilities: {
browserName: 'firefox',
'moz:firefoxOptions': {
args: [
// '-headless',
// '-verbose'
]
}
}
}
}
};
......@@ -347,4 +97,4 @@ function loadServices() {
try {
Services.geckodriver = require('geckodriver');
} catch (err) {}
}
}
\ No newline at end of file
{
"name": "webship",
"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",
"testing",
"test"
],
"author": "Webship.org",
"license": "GPL-2.0",
"scripts": {
"test": "nightwatch"
},
"dependencies": {
"webship-js":"~1.0"
}
"name": "webship",
"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",
"testing",
"test"
],
"author": "Webship.org",
"license": "GPL-2.0",
"scripts": {
"test": "nightwatch"
},
"dependencies": {
"webship-js": "~1.0"
}
\ No newline at end of file
}
\ No newline at end of file
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
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