Skip to content

Instantly share code, notes, and snippets.

View lifedraft's full-sized avatar

Stanislav lifedraft

View GitHub Profile
@lifedraft
lifedraft / machine.js
Last active January 17, 2020 15:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lifedraft
lifedraft / SketchSystems.spec
Last active March 2, 2020 13:11
Add to cart V2*
Add to cart V2*
Click -> Add product to cart
Add product to cart
Loading*
Success -> Success
Fail -> Response evaluate
Response evaluate
Needs flight -> Open Flight modal
@lifedraft
lifedraft / SketchSystems.spec
Last active March 3, 2020 13:20
Add to cart V1*
Add to cart V1*
Click -> Cart Check
Add product to cart
Loading*
Success -> Success
Fail -> Response evaluate
Cart Check
Walk through -> Add product to cart
@lifedraft
lifedraft / machine.js
Last active March 3, 2020 13:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lifedraft
lifedraft / machine.js
Last active May 5, 2020 14:41
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'fetch',
initial: 'query',
states: {
query: {
initial: 'loading',
states: {
loading: {
on: {
@lifedraft
lifedraft / machine.js
Last active May 11, 2020 09:19
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lifedraft
lifedraft / machine.js
Last active May 11, 2020 09:48
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
@lifedraft
lifedraft / machine.js
Last active October 20, 2020 13:34
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@lifedraft
lifedraft / machine.js
Last active April 12, 2021 14:19
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
Billing
FetchBilling
done -> Guard
Guard
doneLoggedIn -> LoggedIn
doneGuest -> Guest
LoggedIn
GuardLoggedIn
withoutAddresses -> WithoutAddresses