This file contains hidden or 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
const WORDLIST = ["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse", | |
"access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act", | |
"action","actor","actress","actual","adapt","add","addict","address","adjust","admit", | |
"adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent", | |
"agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert", | |
"alien","all","alley","allow","almost","alone","alpha","already","also","alter", | |
"always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger", | |
"angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique", | |
"anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic", | |
"area","arena","argue","arm","armed","armor","army","around","arrange","arrest", |
This file contains hidden or 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
pre_tasks: | |
- name: Install Java | |
apt: | |
name: default-jre | |
state: present | |
update_cache: yes |
This file contains hidden or 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
--- | |
applications: | |
- name: devops-todo-1-or-whatever-you-chose | |
memory: 128M | |
buildpack: sdk-for-nodejs | |
command: npm run start | |
env: | |
OPTIMIZE_MEMORY: true |
This file contains hidden or 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
roles: | |
- arknoll.selenium |
This file contains hidden or 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
selenium_install_firefox: yes | |
selenium_install_chrome: no | |
selenium_version: 3.12.0 |
This file contains hidden or 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
--- | |
- hosts: mygroup | |
tasks: | |
- name: Installs Git version control | |
apt: | |
name: git | |
state: present | |
update-cache: true | |
- name: Installs GoAccess | |
apt: |
This file contains hidden or 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
#!/bin/bash | |
# This script is run on IBM Cloud in the delivery pipeline | |
# It enables a Test stage to run automated Selenium tests | |
# In Firefox using a virtual display | |
echo "==> Updating all dependencies" | |
sudo apt-get -y --force-yes update | |
echo "==> Installing Firefox" | |
sudo apt-get -y --force-yes install firefox | |
firefox -v |
This file contains hidden or 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 collection of test cases will be testing the title of the page | |
describe('title', function() { | |
const driver = getDriver(); | |
// Before every test runs, we'll need to open up the web page in Firefox | |
beforeEach(openWebsite(driver)); | |
// ▼ Write the test case for the page title below here ▼ | |
it('is correct', async function() { |
This file contains hidden or 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
#!/bin/bash | |
cf push -f ./manifest.yml | |
export APP_URL=http://$(cf app $CF_APP_NAME | grep -e urls: -e routes: | awk '{print $2}') |
This file contains hidden or 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
describe('tasks', function() { | |
const driver = getDriver(); | |
beforeEach(openWebsite(driver)); | |
// ▼ Write the test case for the tasks list below here ▼ | |
it('lists four tasks', async function() { | |
try { | |
const list = await driver.findElements(By.tagName("li")); | |
list.length.should.equal(4); | |
} catch (error) { |