Skip to content

Commit 4720ce8

Browse files
committed
fix tests
1 parent ab0f0b9 commit 4720ce8

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

components/dash-core-components/tests/integration/misc/test_dcc_components_as_props.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ def test_mdcap001_dcc_components_as_props(dash_dcc):
4949
dash_dcc.wait_for_text_to_equal("#radio-items p", "off")
5050

5151
dash_dcc.find_element("#dropdown").click()
52-
dash_dcc.wait_for_text_to_equal("#dropdown h4", "h4")
53-
dash_dcc.wait_for_text_to_equal("#dropdown h6", "h6")
52+
dash_dcc.wait_for_text_to_equal(".dash-dropdown-content h4", "h4")
53+
dash_dcc.wait_for_text_to_equal(".dash-dropdown-content h6", "h6")
5454

55-
search_input = dash_dcc.find_element("#dropdown .dash-dropdown-search")
55+
search_input = dash_dcc.find_element(".dash-dropdown-content .dash-dropdown-search")
5656
search_input.send_keys("4")
5757
sleep(0.25)
58-
options = dash_dcc.find_elements("#dropdown .dash-dropdown-option")
58+
options = dash_dcc.find_elements(".dash-dropdown-content .dash-dropdown-option")
5959

6060
wait.until(lambda: len(options) == 1, 1)
6161
wait.until(lambda: options[0].text == "h4", 1)
@@ -64,11 +64,11 @@ def test_mdcap001_dcc_components_as_props(dash_dcc):
6464
dash_dcc.find_element("#indexed-search").click()
6565

6666
def search_indexed(value, length, texts):
67-
search = dash_dcc.find_element("#indexed-search .dash-dropdown-search")
67+
search = dash_dcc.find_element(".dash-dropdown-content .dash-dropdown-search")
6868
dash_dcc.clear_input(search)
6969
search.send_keys(value)
7070
sleep(0.25)
71-
opts = dash_dcc.find_elements("#indexed-search .dash-dropdown-option")
71+
opts = dash_dcc.find_elements(".dash-dropdown-content .dash-dropdown-option")
7272

7373
assert len(opts) == length
7474
assert [o.text for o in opts] == texts

components/dash-core-components/tests/integration/misc/test_persistence.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,18 +131,18 @@ def make_output(*args):
131131
dash_dcc.select_date_single("datepickersingle", day="20")
132132

133133
dash_dcc.find_element("#dropdownsingle").click()
134-
dash_dcc.find_element("#dropdownsingle .dash-dropdown-search").send_keys(
134+
dash_dcc.find_element(".dash-dropdown-content .dash-dropdown-search").send_keys(
135135
"one" + Keys.ENTER
136136
)
137137
sleep(0.2)
138-
dash_dcc.find_element("#dropdownsingle .dash-dropdown-option").click()
138+
dash_dcc.find_element(".dash-dropdown-content .dash-dropdown-option").click()
139139

140140
dash_dcc.find_element("#dropdownmulti").click()
141-
dash_dcc.find_element("#dropdownmulti .dash-dropdown-search").send_keys(
141+
dash_dcc.find_element(".dash-dropdown-content .dash-dropdown-search").send_keys(
142142
"six" + Keys.ENTER
143143
)
144144
sleep(0.2)
145-
dash_dcc.find_element("#dropdownmulti .dash-dropdown-option").click()
145+
dash_dcc.find_element(".dash-dropdown-content .dash-dropdown-option").click()
146146

147147
dash_dcc.find_element("#input").send_keys(" maybe")
148148

components/dash-core-components/tests/integration/misc/test_platter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
def test_mspl001_dcc_components_platter(platter_app, dash_dcc):
9-
109
dash_dcc.start_server(platter_app)
1110

1211
dash_dcc.wait_for_element("#waitfor")
@@ -17,7 +16,7 @@ def test_mspl001_dcc_components_platter(platter_app, dash_dcc):
1716
dash_dcc.percy_snapshot("gallery")
1817

1918
dash_dcc.find_element("#dropdown").click()
20-
dash_dcc.find_element("#dropdown .dash-dropdown-search").send_keys("北")
19+
dash_dcc.find_element(".dash-dropdown-content .dash-dropdown-search").send_keys("北")
2120
dash_dcc.percy_snapshot("gallery - chinese character")
2221

2322
text_input = dash_dcc.find_element("#textinput")

0 commit comments

Comments
 (0)