See Styled Footer Component
Story: As a user, I want my Footer component to be styled.
Should be styled correctly
It should have footer styling applied in accordance with the design specs
diff --git a/tests/todomvc/components/Footer.spec.js b/tests/todomvc/components/Footer.spec.js
index 17fd494..ec2f68a 100644
--- a/tests/todomvc/components/Footer.spec.js
+++ b/tests/todomvc/components/Footer.spec.js
@@ -112,5 +112,16 @@ describe('Footer component', () => {
button.simulate('click');
expect(props.deleteCompletedTodos.called).to.be.true
})
+ });
+
+ describe('Should be styled correctly', () => {
+ it('Should have footer styling applied in accordance with the design specs', () => {
+ const {component} = setup();
+
+ expect(component.find({style: {color: '#777'}})).to.have.length(1);
+ expect(component.find({style: {padding: '10px 15px'}})).to.have.length(1);
+ expect(component.find({style: {height: 20}})).to.have.length(1);
+ expect(component.find({style: {borderTop: '1px solid #e6e6e6'}})).to.have.length(1);
+ })
})
});
(END)It should have number of not completed todos in bold
It should have delete button styling applied in accordance with the design specs
It should have delete button hover styling applied in accordance with the design specs
Last updated
Was this helpful?