Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1663 from jrgm/cookies-disabled-wait
Browse files Browse the repository at this point in the history
tests(fix): wait for XHR to set the display on the error div
  • Loading branch information
vladikoff committed Sep 17, 2014
2 parents 05d1b18 + fbf73f8 commit 42dab7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/functional/cookies_disabled.js
Expand Up @@ -6,8 +6,9 @@ define([
'intern',
'intern!object',
'intern/chai!assert',
'require'
], function (intern, registerSuite, assert, require) {
'require',
'tests/functional/lib/helpers'
], function (intern, registerSuite, assert, require, FunctionalHelpers) {
'use strict';

// there is no way to disable cookies using wd. Add `disable_cookies`
Expand Down Expand Up @@ -38,6 +39,7 @@ define([
.end()

// show an error message after second try
.then(FunctionalHelpers.visibleByQSA('#stage .error'))
.findByCssSelector('#stage .error').isDisplayed()
.then(function (isDisplayed) {
assert.equal(isDisplayed, true);
Expand Down

0 comments on commit 42dab7b

Please sign in to comment.