gsoft-inc / wl-orbiter

https://wl-orbiter-website.netlify.app
Apache License 2.0
1 stars 2 forks source link

Feature/ds 349 hopper chromatic test #148

Closed victortrinh2 closed 1 month ago

victortrinh2 commented 1 month ago

Issue: Add hopper chromatic test

Summary

Adding hopper chromatic tests - preparing the repo for the migration. Duplicating all chromatic tests files by appending -hopper to all files and test names

What I did

Ran 2 commands:

find . -type d -name "chromatic" -exec sh -c 'for file in "$1"/*; do
    dir=$(dirname "$file");
    base=$(basename "$file");
    name="${base%%.*}";
    ext="${base#*.}";
    cp "$file" "$dir/${name}-hopper.${ext}";
done' _ {} \;

Explanation:

This will create a copy of each file in the "chromatic" folders with -hopper added to the first part of the filename while keeping the original files intact.

find . -type f -path '*/chromatic/*' -name '*-hopper*' -exec sed -i '' 's|\(Chromatic/[A-Za-z0-9_-]*\)|\1-hopper|g' {} \;

Explanation:

This will append -hopper after the story name.

How to test

If your answer is yes to any of these, please make sure to include it in your PR.

netlify[bot] commented 1 month ago

Deploy Preview for wl-orbiter-storybook ready!

Name Link
Latest commit df36016f01d6b1a2478bfa76d4ac7065bb360935
Latest deploy log https://app.netlify.com/sites/wl-orbiter-storybook/deploys/66f2c52fd9aaac0007b73f49
Deploy Preview https://deploy-preview-148--wl-orbiter-storybook.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 1 month ago

Deploy Preview for wl-orbiter-website ready!

Name Link
Latest commit df36016f01d6b1a2478bfa76d4ac7065bb360935
Latest deploy log https://app.netlify.com/sites/wl-orbiter-website/deploys/66f2c52ff6f32b0008683d28
Deploy Preview https://deploy-preview-148--wl-orbiter-website.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.