Commit 1b006f29 authored by Christoph Häfner's avatar Christoph Häfner

Add Stepper component to visualize movie comparison process

parent 8ce757cd
Pipeline #453 passed with stages
in 9 minutes and 53 seconds
import React from 'react'
import { withStyles } from 'material-ui/styles';
import MobileStepper from 'material-ui/MobileStepper';
export default class Stepper extends React.Component {
render() {
const {steps, activeStep} = this.props;
return (
<MobileStepper
variant="dots"
steps={steps}
activeStep={activeStep}
position="static"
/>
)
}
}
\ No newline at end of file
import React from 'react'
import { expect } from 'chai'
import { mount } from 'enzyme'
import Stepper from '../../../../src/rate/process/components/Stepper'
describe('Stepper', () => {
const props = {
steps: 6,
activeStep: 0
}
it('should render amount of given steps', () => {
const wrapper = mount(<Stepper {...props}/>);
expect(wrapper.find(`.MuiMobileStepper-dot-${props.steps}`)).to.have.length(props.steps);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment