Giter VIP home page Giter VIP logo

Comments (17)

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024 3

@tsuyoshiwada okay 😀 I will try to fix it

from storycap.

theKashey avatar theKashey commented on May 10, 2024 2

1.1.0-alpha.1 – a lot of screenshots are duplicated. I could see button for button story, checkbox, and even App story. It does not got updated.
Using withScreenshot as a global decorator.

from storycap.

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024 1

This change to the example breaks down creating screenshots.

0a86bce

from storycap.

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024 1

Hi @tsuyoshiwada, @camsloanftc. I've made the PR, that is fixing a lot of the race conditions in the capturing process. I'm using my fork in the project, that has 120+ stories (syftapp.com). All these stories are capturing by this plugin and are uploading to Argos Ci for the visual regression testing.
I would be appreciated for the review. 😄

from storycap.

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024

Have the same issue

from storycap.

wadackel avatar wadackel commented on May 10, 2024

Hi @camsloanftc Thank you for issues! and sorry late...

Is it possible to tell me which version the problem will occur?
Also, if you encounter any errors when using the --debug option, it will be helpful if you let me know together 🙏

from storycap.

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024

I've debugged what in my case, withScreenshot for the story Button.withText is called twice. Therefore counter is more than the results.lengts.
Can't understand why

from storycap.

wadackel avatar wadackel commented on May 10, 2024

Hi @alexeybondarenko Thank you for report!
It's a big help 👍

from storycap.

wadackel avatar wadackel commented on May 10, 2024

@alexeybondarenko I could confirm that with text was called twice in the same way. I would like to take a closer look.

from storycap.

wadackel avatar wadackel commented on May 10, 2024

@camsloanftc @alexeybondarenko
Released as 0.6.1. Please check when you have time.

from storycap.

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024

@tsuyoshiwada thanks 👍 In 0.6.1 the bug with the freezing was fixed.

But I've found the new one. It's related to #3.
I've added the global decorator and in the result, not all stories were screenshotted.

alexeybondarenko@5160eff

Didn't were created the screenshots for:
Tag.with text
Tag.with large size
Heading.with subtitle

UPD:
We also expect the next screenshots
Heading.with title viewport 400 250
Tag.with large size viewport 300 120 x2

Looks like the error on some counter. Because now the number of the screenshot is bigger than 10, but we still have total count 10 in the Capturing screenshot progress bar.

from storycap.

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024

This could help to debug
alexeybondarenko@3617b2c

Contexts for the missed stories was handled after the promise resolution.

Log: debug.log

from storycap.

wadackel avatar wadackel commented on May 10, 2024

Hi @alexeybondarenko Thank you for confirmation 😃

There seems to be a case that screenshots are not taken when using the global decorator as you say.
It may take some time to fix the bug. It will be very helpful if you can PR if possible 👍

from storycap.

wadackel avatar wadackel commented on May 10, 2024

Hi @alexeybondarenko @camsloanftc I merged #14 PR. Released it as v0.8.0 🎉
Please check when you have time :)

from storycap.

alexeybondarenko avatar alexeybondarenko commented on May 10, 2024

@tsuyoshiwada 👍 it works. I think we can close it.

from storycap.

wadackel avatar wadackel commented on May 10, 2024

@alexeybondarenko Thanks 😃 ! Close this Issue.

from storycap.

camsloanftc avatar camsloanftc commented on May 10, 2024

Can confirm this works in 0.8.0 as well. Thanks!

from storycap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.