* (devtools): bye bye * remove e2e tests * more cleanuops * fix unit tests * fix test command
12 lines
583 B
TypeScript
12 lines
583 B
TypeScript
import { browser, $, expect } from '@wdio/globals'
|
|
|
|
describe('main suite 1', () => {
|
|
it('foobar test', async () => {
|
|
const caps = browser.capabilities as WebdriverIO.Capabilities
|
|
const assertionValue = caps.browserName!.includes('edge')
|
|
? 'headlessedg'
|
|
: caps.browserName && caps.browserName.includes('chrome') ? 'chrome/' : caps.browserName!.toLowerCase()
|
|
await browser.url('http://guinea-pig.webdriver.io/')
|
|
await expect($('#useragent')).toHaveTextContaining(assertionValue, { ignoreCase: true })
|
|
}, { retry: 2 })
|
|
})
|