小编sri*_*nth的帖子

我们可以用 Promise 替换 Async/Await

我们可以在下面的代码中使用 Promise 而不是 async/await 吗?


fixture`MyFixture`.page`http://devexpress.github.io/testcafe/example`;

test("My first test", async t => {
  await t
    .typeText("#developer-name", "srikanth chitla")
    .setTestSpeed(0.1)
    .click("#submit-button");
});
Run Code Online (Sandbox Code Playgroud)

javascript testing promise async-await testcafe

-1
推荐指数
1
解决办法
1467
查看次数

标签 统计

async-await ×1

javascript ×1

promise ×1

testcafe ×1

testing ×1