* test(e2e): modify e2e hot server to peacefully coexist with dev server * tests: add failing e2e test case * fix: use originalOperationId for layout targeting, if available
23 lines
534 B
JavaScript
23 lines
534 B
JavaScript
const expect = require("expect")
|
|
|
|
describe("onComplete option", function () {
|
|
let mainPage
|
|
beforeEach(function (client, done) {
|
|
mainPage = client
|
|
.url("localhost:3230")
|
|
.page.main()
|
|
|
|
client.waitForElementVisible(".opblock-tag-section", 5000)
|
|
done()
|
|
})
|
|
|
|
it("triggers the page-provided onComplete exactly 1 times", function (client, done) {
|
|
client.execute(function() {
|
|
return window.completeCount
|
|
}, [], (result) => {
|
|
expect(result.value).toEqual(1)
|
|
client.end()
|
|
})
|
|
})
|
|
})
|