1

我正在为我的主要路线编写一些验收测试,并且在我的应用程序中,加载时间会播放一些音频。我想为此写一个测试。这就是我的想法:

test('audio should be playing at startup', function(assert) {
  var isPaused = function () {
    return //some sort of indicator that audio is paused
  }
  visit('/');
  andThen(function () {
    assert.equal(isPaused(), false);
  })

})

我尝试实现类似于这个答案的东西,但它对我不起作用。任何和所有的帮助表示赞赏。谢谢。

4

0 回答 0