Skip to content

Commit

Permalink
Playwright js end to end test with a python version
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Jan 3, 2024
1 parent f3b0f94 commit 5af120c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ jobs:
node-version: 18
cache: 'npm'
cache-dependency-path: plugin/end_to_end/package-lock.json
- name: Install dependencies
working-directory: plugin/end_to_end
run: |
npm ci
npx playwright install chromium
- name: Run Playwright tests
working-directory: plugin/end_to_end
run: npx playwright test
working-directory: plugin/validation/end_to_end
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
docker-compose --project-directory ../../runtime pull
PYTHONPATH=.. pytest
- uses: actions/upload-artifact@v3
if: always()
with:
Expand Down
4 changes: 2 additions & 2 deletions validation/graylog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

class Graylog:

def __init__(self):
self._server = GraylogServer('../runtime')
def __init__(self, docker_compose_path):
self._server = GraylogServer(docker_compose_path)
self._api = GraylogRestApi()

def _wait(self, condition, attempts, sleep_duration=1):
Expand Down
2 changes: 1 addition & 1 deletion validation/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class Test(TestCase):

def setUp(self) -> None:
self._graylog = Graylog()
self._graylog = Graylog('../runtime')
self._graylog.start()

def tearDown(self) -> None:
Expand Down

0 comments on commit 5af120c

Please sign in to comment.