-
Notifications
You must be signed in to change notification settings - Fork 10
Running tests for NBs 7685 #262
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
Conversation
✅ Deploy Preview for mat3ra-materials-designer ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
render() { | ||
return ( | ||
<JupyterLiteSession | ||
originURL="https://deploy-preview-56--mat3ra-jupyterlite.netlify.app" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe get this from a settings file with the following logic: if development
profile, use https://deploy-preview-{JupyterLitePullRequestNumber}--mat3ra-jupyterlite.netlify.app
. So that you only need to update:
isDevelopment: true, JupyterLitePullRequestNumber: 56
tests/package.json
Outdated
"scripts": { | ||
"test": "CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress open", | ||
"test:headless": "export TAGS=${TAGS:-'not @ignore and not @notebook_healthcheck'}; CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress run -e TAGS=\"$TAGS\"", | ||
"test:headless": "export TAGS=${TAGS:-'not @ignore'}; CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress run -e TAGS=\"$TAGS\"", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
USE_JUPYTERLITE_DEV_URL=false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inside settings.js
const JUPYTERLITE_DEVELOPMENT_URL = "";
const JUPYTERLITE_PRODUCTION_URL = "";
const URL = env('USE_JUPYTERLITE_DEV_URL') ? DEV_URL : PROD_URL
dist/settings.js
Outdated
export const theme = DarkMaterialUITheme; | ||
// get from https://github.com/Exabyte-io/jupyterlite/pull/N | ||
const JUPYTERLITE_DEVELOPMENT_URL = "https://deploy-preview-56--mat3ra-jupyterlite.netlify.app"; | ||
export const ORIGIN_URL = import.meta.env.VITE_USE_JUPYTERLITE_DEV_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be process.env.USE_JUPYTERLITE_DEV_URL
dist/settings.js
Outdated
export const theme = DarkMaterialUITheme; | ||
// get from https://github.com/Exabyte-io/jupyterlite/pull/N | ||
const JUPYTERLITE_DEVELOPMENT_URL = "https://deploy-preview-56--mat3ra-jupyterlite.netlify.app"; | ||
export const ORIGIN_URL = import.meta.env.VITE_USE_JUPYTERLITE_DEV_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JUPYTERLITE_ORIGIN_URL
No description provided.