Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 905346e

Browse files
committed
integration test for tabs
1 parent 7ada1d4 commit 905346e

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

test/test_integration.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,45 @@ def test_gallery(self):
203203
html.Div(id='waitfor'),
204204
html.Label('Upload'),
205205
dcc.Upload(),
206+
207+
html.Label('Horizontal Tabs'),
208+
html.Div([
209+
dcc.Tabs(
210+
tabs=[
211+
{'label': 'Market Value', 'value': 1},
212+
{'label': 'Usage Over Time', 'value': 2},
213+
{'label': 'Predictions', 'value': 3},
214+
{'label': 'Target Pricing', 'value': 4},
215+
],
216+
value=3,
217+
id='tabs',
218+
vertical=vertical
219+
),
220+
html.Div(id='tab-output')
221+
], style={
222+
'width': '80%',
223+
'fontFamily': 'Sans-Serif',
224+
'margin-left': 'auto',
225+
'margin-right': 'auto'
226+
}),
227+
228+
html.Label('Vertical Tabs'),
229+
dcc.Tabs(
230+
tabs=[
231+
{'label': 'Market Value', 'value': 1},
232+
{'label': 'Usage Over Time', 'value': 2},
233+
{'label': 'Predictions', 'value': 3},
234+
{'label': 'Target Pricing', 'value': 4},
235+
],
236+
value=3,
237+
id='tabs',
238+
vertical=vertical,
239+
style={
240+
'borderRight': 'thin lightgrey solid',
241+
'textAlign': 'left'
242+
}
243+
),
244+
206245
html.Label('Dropdown'),
207246
dcc.Dropdown(
208247
options=[

0 commit comments

Comments
 (0)