-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtranslateTest.js
More file actions
23 lines (18 loc) · 754 Bytes
/
Copy pathtranslateTest.js
File metadata and controls
23 lines (18 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const expect = require('chai').expect;
const BrowserFactory = require('./selenium/BrowserFactory');
const HomePage = require('./pages/HomePage');
describe('Google Translate', function() {
this.timeout(25000);
it('should translate Swedish to English', async () => {
let driver = await new BrowserFactory().startBrowser();
let homepage = new HomePage(driver);
try {
await homepage.loadGoogleTranslateSwedishToEnglishPage();
await homepage.enterTextToTranslateAndPressEnterKey('Varsågod');
let translatedText = await homepage.getTranslatedText();
expect(translatedText).equal('You are welcome');
} finally {
await driver.quit();
}
});
});