Skip to content
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

Add Tests #364

Open
AnnMarieW opened this issue Oct 18, 2024 · 1 comment
Open

Add Tests #364

AnnMarieW opened this issue Oct 18, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@AnnMarieW
Copy link
Collaborator

AnnMarieW commented Oct 18, 2024

Before moving to a major release we would like to have at least some basic tests for each component. The most important thing to test is the Dash specific functionality like callbacks. For now, we can assume that props that are passed to Mantine are rendered properly by the upstream Mantine component.

Writing tests is a great way to start contributing to Dash Mantine Components!

For more information, please see our Contributing Guide

You can find the all the currently completed tests here: https://github.com/snehilvj/dash-mantine-components/tree/master/tests

@AnnMarieW AnnMarieW added the good first issue Good for newcomers label Oct 18, 2024
@AnnMarieW
Copy link
Collaborator Author

AnnMarieW commented Nov 9, 2024

Test Checkist:

The following are the Components/Props that trigger dash callbacks:


Non-Chart Components/Props Test Checklist

Accordion

  • value

ActionIcon

  • n_clicks

Alert

  • hide

Autocomplete

  • data
  • value

Button

  • n_clicks

Burger

  • opened

#Carousel

  • active

Checkbox

  • checked

CheckboxGroup

  • value

Chip

  • checked

ChipGroup

  • value

ColorInput

  • value

ColorPicker

  • value

DateInput

  • value
  • n_submit

DatePicker

  • value
  • n_submit

DateTimePicker

  • value
  • n_submit

Drawer

  • opened

JsonInput

  • value
  • n_submit

MenuItem

  • n_clicks

Modal

  • opened

MonthPickerInput

  • value
  • n_submit

MultiSelect

  • value

NavLink

  • opened
  • n_clicks

NumberInput

  • value
  • submit

Pagination

  • value

PasswordInput

  • value
  • n_submit

PinInput

  • value

Popover

  • opened

Radio

  • checked

RadioGroup

  • value

RangeSlider

  • value

Rating

  • value

SegmentedControl

  • value

Select

  • value
  • n_submit

Slider

  • value

Spoiler

  • expanded

Stepper

  • active

Switch

  • checked

Tabs

  • value

TagsInput

  • data
  • value

Textarea

  • value
  • n_submit

TextInput

  • value
  • n_submit

TimeInput

  • value
  • n_submit

UnstyledButton

  • n_clicks

YearPickerInput

  • value
  • n_submit

Chart Components/Props Test Checklist

AreaChart

  • clickSeriesName
  • hoverSeriesName

BarChart

  • clickSeriesName
  • hoverSeriesName

BubbleChart

  • clickData
  • hoverData

CompositeChart

  • clickSeriesName
  • hoverSeriesName

DonutChart

  • clickData
  • hoverData

LineChart

  • clickSeriesName
  • hoverSeriesName

PieChart

  • clickData
  • hoverData

RadarChart

  • clickData

ScatterChart

  • clickData
  • hoverData

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant