MyCrypto/spec/sagas/__snapshots__/config.spec.ts.snap
William O'Beirne 4f6e83acf4 Better Offline UX (#785)
* Check offline status immediately.

* If they start the page offline, show a less severe error message.

* Get rid of offline aware header. Disable wallet options when offline.

* Add online indicator to the header.

* Prevent some components from render, some requests from firing when offline.

* Allow for array of elements with typing.

* Dont show dollars in fee summary when offline.

* Fix up saga tests.

* Fix sidebar component offline styles.

* Remove force offline.

* Dont request rates if offline.

* Nonce in advanced, show even of online.

* Show invalid advanced props.

* Fix up offline poll tests.
2018-01-11 12:04:11 -06:00

98 lines
2.0 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`handleNodeChangeIntent* should race getCurrentBlock and delay 1`] = `
Object {
"@@redux-saga/IO": true,
"RACE": Object {
"lb": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [],
"context": null,
"fn": [Function],
},
},
"to": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [
5000,
],
"context": null,
"fn": [Function],
},
},
},
}
`;
exports[`handleNodeChangeIntent* should select getCustomNodeConfig and match race snapshot 1`] = `
Object {
"@@redux-saga/IO": true,
"RACE": Object {
"lb": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [],
"context": null,
"fn": [Function],
},
},
"to": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [
5000,
],
"context": null,
"fn": [Function],
},
},
},
}
`;
exports[`pollOfflineStatus* should race pingSucceeded and timeout 1`] = `
Object {
"@@redux-saga/IO": true,
"RACE": Object {
"pingSucceeded": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [],
"context": null,
"fn": [Function],
},
},
"timeout": Object {
"@@redux-saga/IO": true,
"CALL": Object {
"args": Array [
5000,
],
"context": null,
"fn": [Function],
},
},
},
}
`;
exports[`pollOfflineStatus* should toggle offline and show notification if navigator agrees with isOffline and ping fails 1`] = `
Object {
"@@redux-saga/IO": true,
"PUT": Object {
"action": Object {
"payload": Object {
"duration": 5000,
"id": 0.001,
"level": "info",
"msg": "You are currently offline. Some features will be unavailable.",
},
"type": "SHOW_NOTIFICATION",
},
"channel": null,
},
}
`;