Skip to content

Selenium Work flow enhancements #4065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 49 commits into
base: development
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ec50ef0
fix(workflow): make 'network' input a choice type for workflow_dispatch
khaledyoussef24 Apr 22, 2025
6c4fc38
adding branch choosing and making lerna only runs on local
khaledyoussef24 Apr 23, 2025
6c76dd6
adding workflow to be build on any network or to run on the current n…
khaledyoussef24 May 5, 2025
eb49c47
removing local from choices
khaledyoussef24 May 6, 2025
bee5702
fixing checkout
khaledyoussef24 May 6, 2025
20ba723
fixing checkout
khaledyoussef24 May 6, 2025
d13f8c8
fixing checkout
khaledyoussef24 May 6, 2025
aa1e941
fixing confest.py
khaledyoussef24 May 6, 2025
0a3ce83
fixing workflow link
khaledyoussef24 May 6, 2025
49c7eb6
fixing workflow link
khaledyoussef24 May 6, 2025
4499676
fixing workflow link
khaledyoussef24 May 6, 2025
2b5a8c3
fixing workflow link
khaledyoussef24 May 7, 2025
5a7b0c9
fixing url work flow
khaledyoussef24 May 8, 2025
ffb01f6
fixing url work flow
khaledyoussef24 May 8, 2025
249b528
fixing url work flow
khaledyoussef24 May 8, 2025
7d9a2a9
trial 1
khaledyoussef24 May 8, 2025
01b1d7f
trial
khaledyoussef24 May 8, 2025
02ec2c1
Merge remote-tracking branch 'origin' into development_selenium_workf…
khaledyoussef24 May 8, 2025
e433efc
trial
khaledyoussef24 May 8, 2025
866d15d
trial
khaledyoussef24 May 8, 2025
a852a3d
trial
khaledyoussef24 May 8, 2025
eca183b
trial
khaledyoussef24 May 8, 2025
d313e5f
trial
khaledyoussef24 May 8, 2025
52e4a30
checking
khaledyoussef24 May 8, 2025
d57645b
trying remote
khaledyoussef24 May 8, 2025
b84de32
trying remote
khaledyoussef24 May 8, 2025
6c5b3f3
trying remote
khaledyoussef24 May 8, 2025
d3dac8c
step1
khaledyoussef24 May 11, 2025
e5bd3e4
step2
khaledyoussef24 May 11, 2025
c4a0be9
step3
khaledyoussef24 May 11, 2025
9bf7a40
trial 2 step 1
khaledyoussef24 May 11, 2025
cbf78ea
trial 2 step 2
khaledyoussef24 May 11, 2025
169a685
startegy 2
khaledyoussef24 May 15, 2025
f3a82e5
startegy 2 update 1
khaledyoussef24 May 15, 2025
076c6f1
startegy 2 update 2
khaledyoussef24 May 15, 2025
77e12e5
startegy 2 update 3
khaledyoussef24 May 15, 2025
8fd7e10
startegy 2 update 4
khaledyoussef24 May 15, 2025
9dae3e2
startegy 2 update 5
khaledyoussef24 May 15, 2025
668942f
startegy 2 update 6
khaledyoussef24 May 15, 2025
b4f0fd0
startegy 2 update 9
khaledyoussef24 May 15, 2025
1ebf141
fixing work flow uses
khaledyoussef24 May 15, 2025
430fa6c
fixing the priniting of the seed
khaledyoussef24 May 15, 2025
7632715
fixing the priniting of the seed
khaledyoussef24 May 15, 2025
0ab59b3
fixing the priniting of the seed
khaledyoussef24 May 15, 2025
6b6ba4e
Merge remote-tracking branch 'origin' into development_selenium_workf…
khaledyoussef24 May 15, 2025
da31eb2
Merge branch 'development' of https://github.com/threefoldtech/tfgrid…
khaledyoussef24 May 15, 2025
6c91ead
fixing seeds field
khaledyoussef24 May 15, 2025
dcf3ca8
fixing seeds field
khaledyoussef24 May 15, 2025
2321878
fixing seeds field
khaledyoussef24 May 15, 2025
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
61 changes: 50 additions & 11 deletions .github/workflows/playground_selenium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,77 @@ name: Playground Selenium Tests

on:
workflow_dispatch:
inputs:
network:
description: "Select the network to run tests on (dev, qa, test, main)"
required: true
default: "dev"
type: choice
options:
- dev
- qa
- test
- main
schedule:
- cron: "0 6 * * *"

jobs:
selenium-run:
runs-on: ubuntu-latest

# expose both the chosen network and your secrets
env:
NETWORK: ${{ inputs.network }}
TFCHAIN_MNEMONICS: ${{ secrets.TFCHAIN_MNEMONICS }}
TFCHAIN_NODE_MNEMONICS: ${{ secrets.TFCHAIN_NODE_MNEMONICS }}
STELLAR_ADDRESS: ${{ secrets.STELLAR_ADDRESS }}
EMAIL: ${{ secrets.EMAIL }}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setting up Python

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Installing all necessary packages
run: pip install -r packages/playground/tests/frontend_selenium/requirements.txt
- name: Node install

- name: Install Python packages
run: pip install -r packages/playground/tests/frontend_selenium/requirements.txt

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Yarn install

- name: Install Node.js dependencies
run: yarn install

- name: Lerna Build
run: yarn lerna run build
- name: Yarn Serve

- name: Serve Dashboard locally
run: make run project=playground &

- name: Wait for localhost
run: sleep 60

- name: Generate Config.ini
run: |
cd packages/playground/tests/frontend_selenium
rm -f Config.ini
echo "[Base]" > Config.ini
echo "port = 5173" >> Config.ini
echo "net = $NETWORK" >> Config.ini
echo "[Utils]" >> Config.ini
echo "seed = $TFCHAIN_MNEMONICS" >> Config.ini
echo "node_seed = $TFCHAIN_NODE_MNEMONICS" >> Config.ini
echo "address = $STELLAR_ADDRESS" >> Config.ini
echo "email = $EMAIL" >> Config.ini

- name: Debug Config.ini
run: nl packages/playground/tests/frontend_selenium/Config.ini

- name: Run tests
working-directory: ./packages/playground/tests/frontend_selenium
env:
TFCHAIN_MNEMONICS: ${{ secrets.TFCHAIN_MNEMONICS }}
TFCHAIN_NODE_MNEMONICS: ${{ secrets.TFCHAIN_NODE_MNEMONICS }}
STELLAR_ADDRESS: ${{ secrets.STELLAR_ADDRESS }}
EMAIL: ${{ secrets.EMAIL }}
run: python -m pytest -v
8 changes: 0 additions & 8 deletions packages/playground/tests/frontend_selenium/Config.ini

This file was deleted.

Loading