Created
August 11, 2020 12:01
-
-
Save wunnle/61daea1562e89f3fb777f9b3b160a0e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
beforeAll(async () => { | |
driver = new webdriver.Builder() | |
.usingServer(gridUrl) | |
.withCapabilities(androidCapabilities) | |
.build() | |
await driver.manage().setTimeouts({ implicit: 5000 }) | |
}, 50000) | |
test('test A', async done => { | |
const firstHotelNameText = await driver.findElement(By.css('h1')).getText() | |
expect(firstHotelNameText).toMatch(/Main title/i) | |
done() | |
}, 200000) | |
test('test B', async done => { | |
const firstHotelNameText = await driver.findElement(By.css('h2')).getText() | |
expect(firstHotelNameText).toMatch(/Secondary title/i) | |
done() | |
}, 200000) | |
test('test C', async done => { | |
const firstHotelNameText = await driver.findElement(By.css('h3')).getText() | |
expect(firstHotelNameText).toMatch(/Terciary title/i) | |
done() | |
}, 200000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment