Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
54d58de
Adding buildkite config and scripts
tzero86 Apr 6, 2023
c496a83
Quick fix for run_tests.sh
tzero86 Apr 6, 2023
ff967a0
fixed buildkite foldername
tzero86 Apr 6, 2023
5223d7a
fix number 23423
tzero86 Apr 6, 2023
a93b3f8
Test
tzero86 Apr 6, 2023
a4b2b07
Trying to fix CI on Windows
tzero86 Apr 7, 2023
b2ec2be
Fix Attempt 34234
tzero86 Apr 7, 2023
96f39e9
Trying to fix the CI/CD pipeline
tzero86 Apr 10, 2023
40d49f5
Will this fix the CI/CD nightmare? who knows.
tzero86 Apr 10, 2023
113680b
making scripts executable
tzero86 Apr 10, 2023
23bb6ec
What is life? baby keep trying some more
tzero86 Apr 10, 2023
8219863
Force download latest chromedriver onto agent
tzero86 Apr 10, 2023
0224b26
Switching to ubuntu CI/CD agent, adjusted script.
tzero86 Apr 10, 2023
8a7092d
Another fix bites the dust
tzero86 Apr 10, 2023
fd04da2
and another one
tzero86 Apr 10, 2023
04f7fcd
Here we go again
tzero86 Apr 10, 2023
021bb15
More fix attempts
tzero86 Apr 11, 2023
d56cdc9
Reordering commands
tzero86 Apr 11, 2023
2512918
Added grid command to run selenium grid jar
tzero86 Apr 11, 2023
8c7fde1
running grid in the background
tzero86 Apr 11, 2023
df3c40d
Test 234234
tzero86 Apr 11, 2023
72e8bb0
Some corrected drivers
tzero86 Apr 11, 2023
b940c94
Chromium is the way? not sure boy.
tzero86 Apr 11, 2023
b499b5d
And more fixes boy
tzero86 Apr 11, 2023
cae45d9
More updates to try and fix CI
tzero86 Apr 11, 2023
4a97683
IT IS WORKING! OH MY FREAKING GADDD
tzero86 Apr 11, 2023
e21998c
Timeout increase
tzero86 Apr 11, 2023
374f611
switching to edge, non-grid and prod
tzero86 Apr 11, 2023
66a8f6b
trying local again
tzero86 Apr 11, 2023
4895a97
Update
tzero86 Apr 11, 2023
970379e
Trying without concurrent browsers
tzero86 Apr 11, 2023
bcb1537
removing one login test
tzero86 Apr 11, 2023
ac8301d
added report to pipeline artifacts
tzero86 Apr 11, 2023
3d9e6bd
Introducing dynamic env and suite based off pipeline env vars
tzero86 Apr 11, 2023
b85945e
Fighting the Only Flaky test
tzero86 Apr 12, 2023
79f7b17
Fixed it
tzero86 Apr 12, 2023
dd06fc2
Fixed It Part 2: The forgotten file
tzero86 Apr 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .buildkite/pipeline.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -euo pipefail

PIPELINE=${PIPELINE:-build}

function build() {
cat <<EOF

steps:
- name: ":desktop_computer: Automation"
command: "./scripts/buildkite-automation.sh"
artifact_paths:
- "./e2e/reports/cucumber-html-report.html"
EOF
}

$PIPELINE
31 changes: 20 additions & 11 deletions e2e/env/common.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
UI_AUTOMATION_BROWSER='edge'
BROWSER_ARGUMENTS='acceptInsecureCerts --headful'
# BROWSER RELATED SETTINGS
UI_AUTOMATION_BROWSER='chrome'
BROWSER_ARGUMENTS='--headless'
BROWSER_WIDTH=1280
BROWSER_HEIGHT=720

# FRAMEWORK SETTINGS
LOG_LEVEL='debug'
PARALLEL=4
RETRY=1

# FRAMEWORK PATHS
SCREENSHOT_PATH='./reports/screenshots/'
JSON_REPORT_FILE='./reports/report.json'
HTML_REPORT_FILE='./reports/cucumber-html-report.html'
Expand All @@ -9,16 +19,15 @@ PAGE_ELEMENTS_PATH='/config/mappings/'
EMAILS_URLS_PATH='/config/emails.json'
ACCESSIBILITY_REPORT_PATH='reports/accessibility'
HTML_ACCESSIBILITY_FILE='accesibility_report.html'
SELENIUM_GRID_ENABLED=true
SELENIUM_GRID_URL='http://localhost:4444'
VAR_LOOKUP_TRIGGER='$.'
ENV_PATH='./env/'
LOG_LEVEL='log'

# SELENIUM GRID SETTINGS
SELENIUM_GRID_ENABLED=false
SELENIUM_GRID_URL='http://localhost:4444'

# CUCUMBER & TIMEOUT SETTINGS
VAR_LOOKUP_TRIGGER='$$.'
CUCUMBER_PUBLISH_QUIET=true
SCRIPT_TIMEOUT=20000
WAITFOR_TIMEOUT=10000
WAITFOR_POLL_WAIT=2000
BROWSER_WIDTH=1280
BROWSER_HEIGHT=720
CUCUMBER_PUBLISH_QUIET=true
PARALLEL=5
RETRY=1
2 changes: 2 additions & 0 deletions e2e/env/localhost.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UI_AUTOMATION_HOST='localhost'
TEST_PASSWORD='DaPassword!'
2 changes: 2 additions & 0 deletions e2e/env/production.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UI_AUTOMATION_HOST='production'
TEST_PASSWORD='Pr0dPassw0rd'
26 changes: 22 additions & 4 deletions e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@
"typescript": "^5.0.2"
},
"dependencies": {
"rimraf": "^4.4.1"
"@axe-core/webdriverjs": "^4.6.1",
"@babel/cli": "^7.21.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.21.0",
"@cucumber/cucumber": "^9.1.0",
"@faker-js/faker": "^7.6.0",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"axe-html-reporter": "^2.2.3",
"chromedriver": "^111.0.0",
"cross-env": "^7.0.3",
"cucumber-html-reporter": "^6.0.0",
"dotenv": "^16.0.3",
"eslint": "^8.37.0",
"geckodriver": "^3.2.0",
"rimraf": "^4.4.1",
"selenium-webdriver": "^4.8.2",
"ts-node": "^10.9.1",
"typescript": "^5.0.2"
}
}
Loading