@revoloo/cypress6
Version:
Cypress.io end to end testing tool
28 lines (21 loc) • 543 B
JavaScript
import { action, computed, observable } from 'mobx'
class Warning {
type
message
isDismissed = false
isRetrying = false
constructor (props) {
this.type = props.type
this.message = props.message
}
get isRetryable () {
return this.type === 'CANNOT_CONNECT_BASE_URL_WARNING'
}
setDismissed (isDismissed) {
this.isDismissed = isDismissed
}
setRetrying (isRetrying) {
this.isRetrying = isRetrying
}
}
export default Warning