Skip to content
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

Feature/gh actions selenium tests #691

Merged
merged 3 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
38 changes: 38 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,41 @@ jobs:
run: |
cd wafer
python ../manage.py compilemessages



selenium:

runs-on: ubuntu-latest

name: Selenium - Browser ${{ matrix.browser }}
strategy:
max-parallel: 2
matrix:
browser: ['chrome', 'firefox']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
pip install selenium
- name: Install node
uses: actions/setup-node@v4
- name: Install javascript dependencies
run: |
npm install
- name: Setup Chrome
uses: browser-actions/setup-chrome@v1
if: matrix.browser == 'chrome'
- name: Setup firefox
run: |
wget -O firefox.tar.bz2 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US'
tar xaf firefox.tar.bz2
export PATH=$PATH:${PWD}/firefox
if: matrix.browser == 'firefox'
- name: Run Tests
run: |
python manage.py test --tag ${{ matrix.browser }}
26 changes: 25 additions & 1 deletion wafer/schedule/tests/test_schedule_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,4 +552,28 @@ class ChromeScheduleEditorTests(EditorTestsMixin, ChromeTestRunner):


class FirefoxSchedultEditorTests(EditorTestsMixin, FirefoxTestRunner):
pass
# We explictly mark the tests we expect to fail due to
# https://bugzilla.mozilla.org/show_bug.cgi?id=1515879
# as expectedFailure, so we can run these in github actions
# with sensible results (and hopefully see when the bug gets
# fixed).

@expectedFailure
def test_drag_talk(self):
super().test_drag_talk()

@expectedFailure
def test_drag_page(self):
super().test_drag_page()

@expectedFailure
def test_drag_over_talk(self):
super().test_drag_over_talk()

@expectedFailure
def test_drag_over_page(self):
super().test_drag_over_page()

@expectedFailure
def test_adding_clash(self):
super().test_adding_clash()
Loading