We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7cc98e commit 17178a8Copy full SHA for 17178a8
test/test.js
@@ -10,13 +10,13 @@ describe('Google Translate', function () {
10
await driver.wait(until.titleIs('Google Translate'), 2000);
11
12
await driver.findElement(By.id('source')).sendKeys('varsågod', Key.RETURN);
13
- let prom = await driver.wait(until.elementLocated(By.css('.translation span')), 2000).getText()
+ let prom = await driver.wait(until.elementLocated(By.css('.translation span')), 2000).getText();
14
15
expect(prom)
16
.to.be.a('string')
17
- .and.equal('You are welcome')
+ .and.equal('You are welcome');
18
} catch (error) {
19
- expect.fail(`Error while executing test: ${error}`);
+ throw(error);
20
} finally {
21
await driver.quit();
22
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments