generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### To be filled by the PR creator: * A brief description of the changes made - * Do we have clean latest run report (Docker or Browserstack) attached with this PR? * [ ] Yes * [ ] No (Please explain why) * Does the PR contain changes to any core file? * [ ] Yes (Needs approval from at least 1 people) * [ ] No * Is it * [ ] New Testcase * [ ] Fix ### To be filled by the PR reviewer: * [ ] Verify the attached run report passed in GitHub Actions (Docker or Browserstack run) * General * [ ] Use the best strategy to locate the elements * [ ] Comments wherever the code is not readable by itself * [ ] Use of the right data structure for the use case * [ ] Reuse logic/functionality as much as possible * [ ] Cleanup of any test data that is generated by the tests * [ ] No static waits
- Loading branch information
Showing
3 changed files
with
108 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
name: BS - Web UI Suites Tests | ||
|
||
env: | ||
TAGS: 'web_tests' | ||
BASE_URL: https://opensource-demo.orangehrmlive.com | ||
BROWSERSTACK_USER: ${{secrets.BROWSERSTACK_API_USERNAME}} | ||
BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}} | ||
HRM_USER_NAME: ${{ secrets.HRM_USER_NAME }} | ||
HRM_PASSWORD: ${{ secrets.HRM_PASSWORD }} | ||
|
||
on: | ||
schedule: | ||
- cron: '0 20 * * *' | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: Gherkin Tags | ||
required: true | ||
default: 'web_tests' | ||
|
||
jobs: | ||
web-suites-regression: | ||
strategy: | ||
max-parallel: 1 | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- name: Win Chrome | ||
baseurl: https://opensource-demo.orangehrmlive.com | ||
tags: 'web_tests and healthcheck' | ||
config_file: ./env_configs/win_chrome.json | ||
html_report: win-chrome | ||
|
||
- name: Win Firefox | ||
baseurl: https://opensource-demo.orangehrmlive.com | ||
tags: 'web_tests and firefox and smoke' | ||
config_file: ./env_configs/win_firefox.json | ||
html_report: win-firefox | ||
|
||
- name: Win Edge | ||
baseurl: https://opensource-demo.orangehrmlive.com | ||
tags: 'web_tests and sanity' | ||
config_file: ./env_configs/win_edge.json | ||
html_report: win-edge | ||
|
||
- name: Mac Safari | ||
baseurl: https://opensource-demo.orangehrmlive.com | ||
tags: 'web_tests and regression' | ||
config_file: ./env_configs/mac_safari.json | ||
html_report: mac-safari | ||
|
||
name: ${{ matrix.name }} - Regression | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: BrowserStack Env Setup | ||
uses: browserstack/github-actions/setup-env@master | ||
with: | ||
username: ${{secrets.BROWSERSTACK_API_USERNAME}} | ||
access-key: ${{secrets.BROWSERSTACK_ACCESS_KEY}} | ||
|
||
- name: BrowserStack Local Tunnel Setup | ||
uses: browserstack/github-actions/setup-local@master | ||
with: | ||
local-testing: start | ||
local-identifier: random | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup dependencies | ||
run: | | ||
sh setup_install.sh | ||
- name: Run All Tests | ||
run: | | ||
env | ||
source $HOME/.bp-venv/bin/activate | ||
sh ci_run_web.sh ${{secrets.BROWSERSTACK_API_USERNAME}} ${{secrets.BROWSERSTACK_ACCESS_KEY}} "${{ matrix.config_file }}" "${{ matrix.tags }}" "${{ matrix.baseurl }}" "${{secrets.SLACK_WEBHOOK_URL}}" "${{secrets.TEAMS_WEBHOOK_URL}}" | ||
- name: BrowserStackLocal Stop | ||
uses: browserstack/github-actions/setup-local@master | ||
with: | ||
local-testing: stop | ||
if: ${{ always() }} | ||
|
||
- name: Upload HTML run report in the Artifacts Folder | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.html_report }} | ||
path: | | ||
./*.html | ||
./output/ | ||
./assets/ | ||
./test_data/visualtesting/test/*.png | ||
if: ${{ always() }} |
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