 
             # Check position
             cursorPixelPosition = editorView.pixelPositionForScreenPosition editor.getCursorScreenPosition()
-            expect(autocomplete.position().top).toBe cursorPixelPosition.top + editorView.lineHeight
+            expect(parseInt autocomplete.css("top")).toBe cursorPixelPosition.top + editorView.lineHeight
             expect(autocomplete.position().left).toBe cursorPixelPosition.left
 
         describe "when the autocomplete view does not fit below the cursor", ->


            # Check position
            cursorPixelPosition = editorView.pixelPositionForScreenPosition editor.getCursorScreenPosition()
            autocompleteBottom = autocomplete.position().top + autocomplete.outerHeight()
            expect(autocompleteBottom).toBe cursorPixelPosition.top
            expect(autocomplete.position().left).toBe cursorPixelPosition.left

      describe ".cancel()", ->


    # Set to live completion
    atom.config.set "autocomplete-plus.enableAutoActivation", true
    atom.config.set "autocomplete-plus.fileBlacklist", ".*, *.md"

    # Set the completion delay
    completionDelay = 100
