Skip to content

Instantly share code, notes, and snippets.

@wunnle
Created August 11, 2020 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wunnle/61daea1562e89f3fb777f9b3b160a0e4 to your computer and use it in GitHub Desktop.
Save wunnle/61daea1562e89f3fb777f9b3b160a0e4 to your computer and use it in GitHub Desktop.
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