Skip to content

Commit

Permalink
Merge pull request #211 from Exabyte-io/hotfix/jl-test
Browse files Browse the repository at this point in the history
hotfix: fix JL test
  • Loading branch information
VsevolodX committed May 6, 2024
2 parents d9c9fe0 + 13b4372 commit 4c2fc70
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 78 deletions.
Expand Up @@ -73,7 +73,7 @@ class BaseJupyterLiteSessionComponent extends React.Component {
}
}
render() {
return (_jsx(JupyterLiteSession, { defaultNotebookPath: this.DEFAULT_NOTEBOOK_PATH, messageHandlerConfigs: this.messageHandlerConfigs, ref: this.jupyterLiteSessionRef }));
return (_jsx(JupyterLiteSession, { originURL: "http://localhost:8000", defaultNotebookPath: this.DEFAULT_NOTEBOOK_PATH, messageHandlerConfigs: this.messageHandlerConfigs, ref: this.jupyterLiteSessionRef }));
}
}
export default BaseJupyterLiteSessionComponent;
135 changes: 68 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -68,7 +68,7 @@
"react-dom": "^17.0.0"
},
"devDependencies": {
"@exabyte-io/cove.js": "2024.4.14-0",
"@exabyte-io/cove.js": "2024.5.4-0",
"@exabyte-io/eslint-config": "^2023.8.29-1",
"@mat3ra/esse": "2024.4.9-0",
"@mat3ra/code": "2024.3.25-3",
Expand Down
Expand Up @@ -3,6 +3,7 @@ Feature: User can open JupyterLite Transformation dialog and create an interface
Scenario:
When I open materials designer page
Then I see material designer page
And I clone material at index "1"

# Open
When I open JupyterLite Transformation dialog
Expand All @@ -12,19 +13,17 @@ Feature: User can open JupyterLite Transformation dialog and create an interface
# Open notebook
When I click on "1.1. Interface creation with Zur and McGill Superlattice (ZSL) algorithm" link
Then I see file "create_interface_with_min_strain_zsl.ipynb" opened

And I select material with index "2" in MaterialsSelector

# Change code
When I set code in the cell "3" to:
"""
SUBSTRATE_PARAMETERS = {
"MATERIAL_INDEX": 0,
"MILLER_INDICES": (1, 1, 1),
"THICKNESS": 1,
}
LAYER_PARAMETERS = {
"MATERIAL_INDEX": 0,
"MILLER_INDICES": (1, 1, 1),
"THICKNESS": 1,
}
Expand Down Expand Up @@ -53,8 +52,9 @@ USE_CONVENTIONAL_CELL = True
And I submit materials
Then material with following data exists in state
| path | index |
| si-interface.json | $INT{2} |
| si-interface.json | $INT{3} |


# Reset the materials list
And I delete materials with index "3"
And I delete materials with index "2"
8 changes: 4 additions & 4 deletions tests/cypress/fixtures/si-interface.json
Expand Up @@ -25,31 +25,31 @@
"value": [
0.8333333,
0.5833333,
0.03211513
0.4389715
]
},
{
"id": 1,
"value": [
0.5,
0.25,
0
0.4068564
]
},
{
"id": 2,
"value": [
0.8333333,
0.5833333,
0.1541721
0.5610285
]
},
{
"id": 3,
"value": [
0.5,
0.25,
0.1862872
0.5931436
]
}
],
Expand Down
Expand Up @@ -24,7 +24,7 @@ export default class PythonTransformationDialogWidget extends Widget {
}

selectMaterial(index: number) {
this.browser.click(this.wrappedSelectors.materialsInSelector);
this.browser.click(selectors.materialsInSelector);
this.browser.click(selectors.materialsSelectorItem(index));
}

Expand Down

0 comments on commit 4c2fc70

Please sign in to comment.