Skip to content

Instantly share code, notes, and snippets.

View vojtech-cerveny's full-sized avatar
🦊
Foxy fox

Vojtěch Červený vojtech-cerveny

🦊
Foxy fox
  • Sequenex
  • Ostrava, Czech Republic
View GitHub Profile
@vojtech-cerveny
vojtech-cerveny / collection.json
Created May 2, 2023 14:10
Czechitas collection
{
"info": {
"_postman_id": "dcab6bbd-a770-48b7-980a-a3f2ded1ef31",
"name": "DATOJ23 API tests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "2294419",
"_collection_link": "https://web.postman.co/workspace/e9052594-972b-45e0-b6b0-7e7aff2f415f/collection/2294419-dcab6bbd-a770-48b7-980a-a3f2ded1ef31?action=share&creator=2294419&source=collection_link"
},
"item": [
{
{"version":2,"data":[{"title":"REMOTE","description":"REMOTE","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE1","description":"REMOTE1","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE2","description":"REMOTE3","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE3","description":"REMOTE2","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE","description":"REMOTE","image":"","imageUrl":"","date":"2021-07-09T14:35:30.702Z"},{"title":"REMOTE1","description":"REMOTE1","image":"","imageUrl":"","date":"2021
const loginMachine = Machine({
initial: "login_opened",
context: {
username: false,
password: false,
registration_done: false,
registration_filled: false,
},
states: {
login_opened: {
@vojtech-cerveny
vojtech-cerveny / machine.js
Last active December 7, 2020 16:24
Generated by XState Viz: https://xstate.js.org/viz
const incrementBack = (context) => context.back + 1;
const isAnonymous = (context) => context.anonymous === true;
const isLoggedIn = (context) => context.anonymous === false;
const adcoMachine = Machine({
id: 'wizard',
initial: 'buying_stuff',
context: {
back: 0,
modal_confirmed: null,
@vojtech-cerveny
vojtech-cerveny / machine.js
Last active November 20, 2020 15:16
Generated by XState Viz: https://xstate.js.org/viz
const adcoMachine = Machine({
id: 'wizard',
initial: 'start',
context: {
back: false,
},
states: {
start: {
on: {
BOM_UPLOAD: 'uploaded_bom',
@vojtech-cerveny
vojtech-cerveny / machine.js
Created November 20, 2020 14:53
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
const feedbackMachine = Machine({
id: 'comment',
initial: 'comment_tab_closed',
context: {
text: null,
resolved: false,
hasResponses: false,
},
states: {
comment_tab_closed: {
@vojtech-cerveny
vojtech-cerveny / gist:c57391969a2b8682fcfe2c164d44728d
Created June 16, 2020 12:28
gist log wdio multiremote + devTools
$ yarn test:e2e
yarn run v1.21.1
$ npx wdio wdio.conf.js
Execution of 1 spec files started at 2020-06-16T11:59:11.824Z
2020-06-16T11:59:12.031Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-06-16T11:59:12.035Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2020-06-16T11:59:12.036Z INFO @wdio/local-runner: Start worker 0-0 with arg: wdio.conf.js
[0-0] 2020-06-16T11:59:12.281Z INFO @wdio/local-runner: Run worker command: run
const feedbackMachine = Machine({
id: 'comment',
initial: 'comment_tab_closed',
context: {
text: null,
resolved: false,
hasResponses: false,
},
states: {
comment_tab_closed: {
// cypress.json
{
"chromeWebSecurity": false
}
//test.spec.js
/// <reference types="cypress" />
context('Actions', () => {