 		it 'is the name of the default list', (done) ->
 			driver = @driver
 			text = @driver.findElement(id: 'listName').getText()
-			@driver.wait(-> driver.isElementPresent @driver.findElement(id: 'todo-list').findElement(tagName: 'li'), 10000)
+			@driver.wait(-> driver.isElementPresent driver.findElement(id: 'todo-list').findElement(tagName: 'li'), 10000)
 			expect(text).to.eventually.equal 'Public list 1'
 			@timeout 10000, done()
 
 		it 'is the lenght of the default list items = 2', (done) ->
-			ul = @driver.findElement(id: 'todo-list')
-			lis = ul.findElements(tagName: 'li')
+			lis = @driver.findElement(id: 'todo-list').findElements(tagName: 'li')
 			expect(lis.count()).to.eventually.equal 2
 			@timeout 10000, done()
 


		describe 'Show all items', ->

		describe 'Show completed items', ->

		describe 'Show uncompleted items', ->

		describe 'Swap completed  items', ->

	describe 'User actions', ->


		describe 'Create list', ->

		describe 'Delete list', ->

	describe 'Item actions', ->

		@timeout 12000

		beforeEach ->
			@driver.get 'http://127.0.0.1/'

		it 'is the length of the completd items = 1', (done) ->
			@driver.findElement(linkText: 'Completed').click()
			lis = @driver.findElement(id: 'todo-list').findElements(tagName: 'li')
			expect(lis.count()).to.eventually.equal 1
			@timeout 10000, done()

		it 'is the length of the active items = 1', (done) ->
			@driver.findElement(linkText: 'Active').click()
			lis = @driver.findElement(id: 'todo-list').findElements(tagName: 'li')
			expect(lis.count()).to.eventually.equal 1
			@timeout 10000, done()

		describe 'Add item', ->

