       error = assert.throws =>
         @browser.assert.elementLacksText('.only', 'only')
 
-      expected = 'Assertion failed: elementLacksText: .only\n\u001b[39;49;00mnotInclude expected needle not to be found in haystack\n- needle: \"only\"\nhaystack: \"only one here\"'
-      assert.equal expected, error.message
+      expected = 'Assertion failed: elementLacksText: .only\nnotInclude expected needle not to be found in haystack\n- needle: \"only\"\nhaystack: \"only one here\"'
+      assert.equal expected, stripColors error.message
 
   describe 'elementHasValue', ->
     it 'finds and returns a single element', ->

injectBrowser = require '../../mocha'
assert = require 'assertive'

describe 'element', ->
  before injectBrowser()

  describe 'elementNotVisible', ->
    it 'fails if element does not exist', ->
      error = assert.throws => @browser.assert.elementNotVisible '.non-existing'
      expectedError = 'Assertion failed: Element not found for selector: .non-existing\nExpected null to be truthy'
      assert.equal expectedError, stripColors error.message

    it 'fails if element exists, but is visible', ->
      error = assert.throws => @browser.assert.elementNotVisible 'h1'
      expectedError = 'Assertion failed: Element should not be visible for selector: h1\nExpected true to be falsey'
      assert.equal expectedError, stripColors error.message

    it 'succeeds if element exists and is not visible', ->
      @browser.assert.elementNotVisible '#hidden_thing'
