dsumac Github contribution chart
dsumac Github Stats
dsumac Most Used Languages

Activity

22 Sep 2022

Dsumac

add / review and fix notes

Pushed On 22 Sep 2022 at 03:17:09

Dsumac

Rework all slides

  • add and cut slides
  • add fun
  • add content

Pushed On 22 Sep 2022 at 03:17:09

Dsumac

started

Started On 22 Sep 2022 at 01:57:14
Started

Dsumac

started

Started On 16 Sep 2022 at 02:42:40

Dsumac

started

Started On 07 Sep 2022 at 09:32:34

Dsumac

aliases: add git switch aliases

Pushed On 29 Aug 2022 at 12:05:08

Dsumac

docs: add shell shortcuts to docs

Pushed On 25 Aug 2022 at 04:50:33
Started

Dsumac

started

Started On 02 Aug 2022 at 03:29:35

Dsumac

started

Started On 02 Aug 2022 at 12:57:53
Issue Comment

Dsumac

Bug with yarn version 3: impossible to execute

Hello. Firstly, thank you for the work on this wrapper.

Today, we have seen a problem at execution.

Here is the stackTrace:

/Users/.../testProject/node_modules/shellcheck/shellcheck-stable/shellcheck:1
����


SyntaxError: Invalid or unexpected token
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 

After a lot of investigations, we have tested with a new project in these configurations:

  • npm version 8.5.5: OK
  • yarn version 1.22.18: OK
  • yarn version 3.2.2 (in zero install mode): KO

For the moment, we have founded a dirty but functionnal workaround, in the scripts use a path from node_modules:

"shellcheck": "node_modules/shellcheck/shellcheck-stable/shellcheck *.sh",

Could you fix this bug ?

Forked On 02 Aug 2022 at 12:50:01

Dsumac

Are the steps clear enough? Were you able to reproduce the problem?

Commented On 02 Aug 2022 at 12:50:01
Started

Dsumac

started

Started On 02 Aug 2022 at 12:27:10

Dsumac

add newsboat config

Pushed On 02 Aug 2022 at 12:07:36

Dsumac

git config: rework diff / merge tool config

  • add default diff/merge tool
  • add meld like mergetool

Pushed On 02 Aug 2022 at 11:13:36

Dsumac

doc: add commands for stow steps & tpm install links

Pushed On 01 Aug 2022 at 09:34:28

Dsumac

doc: add commands for stow steps & tpm install links

Pushed On 01 Aug 2022 at 09:25:19

Dsumac

doc: add commands for stow steps & tpm install links

Pushed On 01 Aug 2022 at 09:19:46

Dsumac

The extension seems to be no longer available on the firefox store.

As you can see here:

https://addons.mozilla.org/mk/firefox/addon/chaos-frontend-toolkit/

Forked On 01 Aug 2022 at 05:09:00

Dsumac

Any feedback ?

Commented On 01 Aug 2022 at 05:09:00

Dsumac

started

Started On 01 Aug 2022 at 03:18:57

Dsumac

tmux: add tmux-prefix-highlight plugin & config

Pushed On 29 Jul 2022 at 01:17:26

Dsumac

started

Started On 29 Jul 2022 at 07:47:37
Issue Comment

Dsumac

Bug with yarn version 3: impossible to execute

Hello. Firstly, thank you for the work on this wrapper.

Today, we have seen a problem at execution.

Here is the stackTrace:

/Users/.../testProject/node_modules/shellcheck/shellcheck-stable/shellcheck:1
����


SyntaxError: Invalid or unexpected token
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 

After a lot of investigations, we have tested with a new project in these configurations:

  • npm version 8.5.5: OK
  • yarn version 1.22.18: OK
  • yarn version 3.2.2 (in zero install mode): KO

For the moment, we have founded a dirty but functionnal workaround, in the scripts use a path from node_modules:

"shellcheck": "node_modules/shellcheck/shellcheck-stable/shellcheck *.sh",

Could you fix this bug ?

Forked On 29 Jul 2022 at 07:40:13

Dsumac

The steps are:

  • creating new project from scratch with yarn following the install guide (you can also have an installation of yarn 1 and make an upgrade with yarn set version stable )
  • create a script file at project root touch testScript.sh
  • create a script in package.json "lint:shellcheck": "shellcheck testScript.sh"
  • run the script via yarn lint:shellcheck
  • then the previous error is displayed

Commented On 29 Jul 2022 at 07:40:13
Issue Comment

Dsumac

BDD implementation with Playwright test runner

Our team has a case to use the BDD test, Playwright has any plan to add their own BDD implementation using the playwright test runner? That would be great if to have.

This can help many people who want to use BDD along with Playwright. That's where cucumber became popular 😉

Forked On 28 Jul 2022 at 12:21:52

Dsumac

In the mean time, it exists an acceptable alternative: use the playwright steps to explain all Given/When/Then assertions. The solution is light and fonctionnal. Ex:

 import { test, expect } from '@playwright/test';



test('Scenario explanation', async ({ page, context  }) => {



  await test.step('Given ...', async () => {

    ...

  });



  await test.step('When user make a stuff', async () => {

    ...

  });



  await test.step('Then a stuff is displayed on page', async () => {

    ...

  });



  await test.step('And user click on a button', async () => {

    ...

  });



  await test.step('Then an another stuff is displayed', async () => {

    ...

  });

}); 

And the report (with html reporter) is very readable.

Yes, I am using this currently. Currently this approach is causing me to repeat code and maintenance difficult. Just trying to see if cucumber support would remove repeating same code related to given when then. Any how thanks for inputs.

To avoid code repeating on "given/when/then" you can extract the steps like this:

async function checkStep(page: Page) {
  await test.step('When ... common step', async () => {
    await ...
  });
} 

and use it in tests:

test('My test which is extracted steps', async ({ page }) => {
  await checkStep(page);
}); 

Commented On 28 Jul 2022 at 12:21:52

Dsumac

started

Started On 27 Jul 2022 at 09:13:21

Dsumac

vscode: fix formatting

Pushed On 26 Jul 2022 at 12:08:28

Dsumac

git: add autosquash for rebase

Pushed On 26 Jul 2022 at 12:04:16

Dsumac

git: add alias for fixup

  • use fzf for fuzzy search

Pushed On 26 Jul 2022 at 12:04:16
Issue Comment

Dsumac

BDD implementation with Playwright test runner

Our team has a case to use the BDD test, Playwright has any plan to add their own BDD implementation using the playwright test runner? That would be great if to have.

This can help many people who want to use BDD along with Playwright. That's where cucumber became popular 😉

Forked On 25 Jul 2022 at 09:14:11

Dsumac

In the mean time, it exists an acceptable alternative: use the playwright steps to explain all Given/When/Then assertions.

The solution is light and fonctionnal.

Ex:

import { test, expect } from '@playwright/test';

test('Scenario explanation', async ({ page, context  }) => {

  await test.step('Given ...', async () => {
    ...
  });

  await test.step('When user make a stuff', async () => {
    ...
  });

  await test.step('Then a stuff is displayed on page', async () => {
    ...
  });

  await test.step('And user click on a button', async () => {
    ...
  });

  await test.step('Then an another stuff is displayed', async () => {
    ...
  });
}); 

Commented On 25 Jul 2022 at 09:14:11

Dsumac

add info to open speaker view

Pushed On 15 Jul 2022 at 06:44:09

Dsumac

update reveal

  • adapt code with new paths

Pushed On 15 Jul 2022 at 06:14:22