See Styled Footer Component

Story: As a user, I want my Footer component to be styled.

Should be styled correctly

Write the test.

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)

Run the test and watch it fail.

Write the code to make the test pass.

Run the test and watch it pass.

Commit changes.

It should have number of not completed todos in bold

Write the test.

Run the test and watch it fail.

Write the code to make the test pass.

Run the test and watch it pass.

Commit changes.

It should have delete button styling applied in accordance with the design specs

Write the test.

Run the test and watch it fail.

Write the code to make the test pass.

Run the test and watch it pass.

Commit changes.

It should have delete button hover styling applied in accordance with the design specs

Write the test.

Run the test and watch it fail.

Write the code to make the test pass.

Run the test and watch it pass.

Commit changes.

Last updated

Was this helpful?