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

Selenium frontend test #44

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
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
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

language: python
dist: bionic
# python:
# - '3.6'
# - '3.7'
# nodejs:
# - 10.0.0
# os: osx
# command to run tests
cache: pip
env:
global:
- MOZ_HEADLESS=1
addons:
firefox: "78.0.1"
sudo: required
services:
- xvfb
before_install:
- sudo apt-get install xvfb
- wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
# - mkdir geckodriver
# - tar -xzf geckodriver-v0.26.0-macos.tar.gz -C geckodriver
# - export PATH=$PATH:$PWD/geckodriver
- sudo tar -xzf geckodriver-v0.26.0-linux64.tar.gz -C /usr/bin
- sudo chmod a+x /usr/bin/geckodriver
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
# - sleep 5 # give xvfb some time to start
install:
- "pip install -r requirements.txt"
- npm install selenium-webdriver@^3.0.0
- curl -o- -L https://yarnpkg.com/install.sh | bash
- node --version
- jupyter --version
- jlpm install
- jlpm run build
- jupyter labextension install


script:
- jupyter labextension list
- jupyter lab --port=8845 --NotebookApp.token='' &
- pytest

4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jupyter
jupyterlab>2.0.0
selenium
pytest
Loading