forked from ethereum/remix-project
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ethereum/master
- Loading branch information
Showing
98 changed files
with
4,203 additions
and
1,441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
# Determine the OS platform | ||
OS="$(uname)" | ||
|
||
if [ "$OS" == "Darwin" ]; then | ||
# macOS systems | ||
if [ -e "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" ]; then | ||
version=$("/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version) | ||
echo "Google Chrome version on macOS: $version" | ||
else | ||
echo "Google Chrome is not installed on your macOS." | ||
fi | ||
elif [ "$OS" == "Linux" ]; then | ||
# Linux systems | ||
if command -v google-chrome >/dev/null; then | ||
version=$(google-chrome --version) | ||
echo "Google Chrome version on Linux: $version" | ||
else | ||
echo "Google Chrome is not installed on your Linux." | ||
fi | ||
else | ||
echo "Unsupported OS." | ||
fi | ||
|
||
MAJORVERSION=$(echo "$version" | grep -Eo '[0-9]+\.' | head -1 | cut -d'.' -f1) | ||
echo "CHROME DRIVER INSTALL $MAJORVERSION" | ||
|
||
# Specify the directory to check | ||
directory="./tmp/webdrivers" | ||
|
||
# Check if the directory exists | ||
if [ -d "$directory" ]; then | ||
echo "Directory exists: $directory" | ||
else | ||
echo "Directory does not exist. Creating directory: $directory" | ||
mkdir -p "$directory" | ||
fi | ||
|
||
|
||
yarn init -y --cwd "$directory" || exit 1 | ||
yarn add -D chromedriver@$MAJORVERSION geckodriver --cwd "$directory" || yarn add -D chromedriver@$MAJORVERSION geckodriver --cwd "$directory" || yarn add -D chromedriver geckodriver --cwd "$directory" || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
module.exports = { | ||
src_folders: ['dist/apps/remix-ide-e2e/src/tests'], | ||
output_folder: './reports/tests', | ||
custom_commands_path: ['dist/apps/remix-ide-e2e/src/commands'], | ||
custom_assertions_path: '', | ||
page_objects_path: '', | ||
globals_path: '', | ||
|
||
webdriver: { | ||
start_process: true, | ||
port: 4444, | ||
server_path: './tmp/webdrivers/node_modules/geckodriver/bin/geckodriver.js', | ||
}, | ||
|
||
test_settings: { | ||
selenium_port: 4444, | ||
selenium_host: 'localhost', | ||
'default': { | ||
globals: { | ||
waitForConditionTimeout: 10000, | ||
asyncHookTimeout: 100000 | ||
}, | ||
screenshots: { | ||
enabled: true, | ||
path: './reports/screenshots', | ||
on_failure: true, | ||
on_error: true | ||
}, | ||
exclude: ['dist/apps/remix-ide-e2e/src/tests/runAndDeploy.test.js', 'dist/apps/remix-ide-e2e/src/tests/pluginManager.test.ts'] | ||
}, | ||
|
||
'firefoxDesktop': { | ||
desiredCapabilities: { | ||
'browserName': 'firefox', | ||
'javascriptEnabled': true, | ||
'acceptSslCerts': true, | ||
'moz:firefoxOptions': { | ||
args: ['-width=2560', '-height=1440'] | ||
} | ||
} | ||
}, | ||
|
||
'firefox': { | ||
desiredCapabilities: { | ||
'browserName': 'firefox', | ||
'javascriptEnabled': true, | ||
'acceptSslCerts': true, | ||
'moz:firefoxOptions': { | ||
args: ['-headless', '-width=2560', '-height=1440'] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.