MCPcopy
hub / github.com/codeceptjs/CodeceptJS / assertPopupActionType

Method assertPopupActionType

lib/helper/extras/Popup.js:57–64  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

55 }
56
57 assertPopupActionType(type) {
58 this.assertPopupVisible()
59 const expectedAction = this._actionType || this._defaultAction
60 if (expectedAction !== type) {
61 throw new Error(`Popup action does not fit the expected action type. Expected popup action to be '${expectedAction}' not '${type}`)
62 }
63 this.clear()
64 }
65}
66
67export default Popup

Callers 4

acceptPopupMethod · 0.80
cancelPopupMethod · 0.80
acceptPopupMethod · 0.80
cancelPopupMethod · 0.80

Calls 2

assertPopupVisibleMethod · 0.95
clearMethod · 0.95

Tested by

no test coverage detected