File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 37
37
command : |
38
38
python -m venv venv
39
39
. venv/bin/activate
40
- pip install -e git+https://github.com/plotly/dash.git#egg=dash[testing]
40
+ git clone --depth 1 https://github.com/plotly/dash.git dash-main
41
+ cd dash-main && pip install -e .[dev,testing] --progress-bar off && cd ..
42
+ cd dash-main/\@plotly/dash-generator-test-component-nested && npm ci && npm run build && sudo R CMD INSTALL . && cd ../../..
43
+ cd dash-main/\@plotly/dash-generator-test-component-standard && npm ci && npm run build && sudo R CMD INSTALL . && cd ../../..
41
44
export PATH=$PATH:/home/circleci/.local/bin/
42
45
pytest --nopercyfinalize --junitxml=test-reports/dashr.xml tests/integration/
43
46
- store_artifacts :
Original file line number Diff line number Diff line change
1
+ from selenium .webdriver .support .select import Select
2
+ import time , os
3
+
4
+
5
+ app = """
6
+ library(dash)
7
+ library(dashHtmlComponents)
8
+ library(dashGeneratorTestComponentNested)
9
+ library(dashGeneratorTestComponentStandard)
10
+
11
+ app <- Dash$new()
12
+ app$layout(htmlDiv(list(
13
+ dgtc_standardMyStandardComponent(id="standard", value="Standard"),
14
+ dgtc_nestedMyNestedComponent(id="nested", value="Nested")
15
+ )))
16
+
17
+ app$run_server()
18
+ """
19
+
20
+
21
+ def test_gene001_simple_callback (dashr ):
22
+ dashr .start_server (app )
23
+
24
+ assert dashr .wait_for_element ("#standard" ).text == "Standard"
25
+ assert dashr .wait_for_element ("#nested" ).text == "Nested"
You can’t perform that action at this time.
0 commit comments