-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
3,036 additions
and
47 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
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
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.0.1-a2" | ||
__version__ = "2.0.1.dev" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
See the [ipywidgets dev guide](https://github.com/jupyter-widgets/ipywidgets/blob/main/docs/source/dev_testing.md#visual-regression-tests) for more info. |
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,35 @@ | ||
try: | ||
from jupyterlab.galata import configure_jupyter_server | ||
|
||
configure_jupyter_server(c) | ||
except (ImportError, ModuleNotFoundError): | ||
# see https://github.com/jupyterlab/jupyterlab/blob/main/jupyterlab/galata/__init__.py | ||
import getpass | ||
import os | ||
from pathlib import Path | ||
from tempfile import mkdtemp | ||
|
||
import jupyterlab | ||
|
||
# Test if we are running in a docker | ||
if getpass.getuser() == "jovyan": | ||
c.ServerApp.ip = "0.0.0.0" # noqa S104 | ||
|
||
c.ServerApp.port = 8888 | ||
c.ServerApp.port_retries = 0 | ||
c.ServerApp.open_browser = False | ||
# Add test helpers extension shipped with JupyterLab | ||
c.LabServerApp.extra_labextensions_path = str( | ||
Path(jupyterlab.__file__).parent / "galata" | ||
) | ||
|
||
c.ServerApp.root_dir = os.environ.get( | ||
"JUPYTERLAB_GALATA_ROOT_DIR", mkdtemp(prefix="galata-test-") | ||
) | ||
c.ServerApp.token = "" | ||
c.ServerApp.password = "" | ||
c.ServerApp.disable_check_xsrf = True | ||
c.LabApp.expose_app_in_browser = True | ||
|
||
# Uncomment to set server log level to debug level | ||
# c.ServerApp.log_level = "DEBUG" |
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,22 @@ | ||
{ | ||
"name": "@mols2grid/ui-tests", | ||
"private": true, | ||
"version": "0.1.0", | ||
"description": "mols2grid UI Tests", | ||
"scripts": { | ||
"start": "jupyter lab --config ./jupyter_server_config.py", | ||
"start:detached": "jlpm start&", | ||
"test": "npx playwright test", | ||
"test:debug": "PWDEBUG=1 npx playwright test", | ||
"test:report": "http-server ./playwright-report -a localhost -o", | ||
"test:update": "npx playwright test --update-snapshots", | ||
"deduplicate": "jlpm && yarn-deduplicate -s fewer --fail" | ||
}, | ||
"author": "Cédric Bouysset", | ||
"license": "BSD-3-Clause", | ||
"devDependencies": { | ||
"@jupyterlab/galata": "^5.0.1", | ||
"@playwright/test": "^1.32.0", | ||
"yarn-deduplicate": "^6.0.1" | ||
} | ||
} |
Oops, something went wrong.