wdio-workflo-jasmine-framework
Version:
This is a customized version of wdio-jasmine-framework for use with workflo framework.
74 lines (63 loc) • 2.35 kB
JavaScript
global._______wdio = {}
describe('sample test', () => {
beforeAll(() => {
const start = new Date().getTime()
browser.command().should.be.equal('foo')
global._______wdio.beforeSync = new Date().getTime() - start
})
beforeAll(function async () {
const start = new Date().getTime()
return browser.command().then(function (result) {
result.should.be.equal('foo')
global._______wdio.beforeAsync = new Date().getTime() - start
})
})
beforeEach(() => {
const start = new Date().getTime()
browser.command().should.be.equal('foo')
global._______wdio.beforeEachSync = new Date().getTime() - start
})
beforeEach(function async () {
const start = new Date().getTime()
return browser.command().then((result) => {
result.should.be.equal('foo')
global._______wdio.beforeEachAsync = new Date().getTime() - start
})
})
it('foo', () => {
const start = new Date().getTime()
browser.command().should.be.equal('foo')
global._______wdio.itSync = new Date().getTime() - start
})
it('foo async', function async () {
const start = new Date().getTime()
return browser.command().then((result) => {
result.should.be.equal('foo')
global._______wdio.itAsync = new Date().getTime() - start
})
})
afterEach(() => {
const start = new Date().getTime()
browser.command().should.be.equal('foo')
global._______wdio.afterEachSync = new Date().getTime() - start
})
afterEach(function async () {
const start = new Date().getTime()
return browser.command().then((result) => {
result.should.be.equal('foo')
global._______wdio.afterEachAsync = new Date().getTime() - start
})
})
afterAll(() => {
const start = new Date().getTime()
browser.command().should.be.equal('foo')
global._______wdio.afterSync = new Date().getTime() - start
})
afterAll(function async () {
const start = new Date().getTime()
return browser.command().then((result) => {
result.should.be.equal('foo')
global._______wdio.afterAsync = new Date().getTime() - start
})
})
})