Comments (17)
@tsuyoshiwada okay 😀 I will try to fix it
from storycap.
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.
This change to the example breaks down creating screenshots.
from storycap.
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.
Have the same issue
from storycap.
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.
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.
Hi @alexeybondarenko Thank you for report!
It's a big help 👍
from storycap.
@alexeybondarenko I could confirm that with text
was called twice in the same way. I would like to take a closer look.
from storycap.
@camsloanftc @alexeybondarenko
Released as 0.6.1
. Please check when you have time.
from storycap.
@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.
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.
This could help to debug
alexeybondarenko@3617b2c
Contexts for the missed stories was handled after the promise resolution.
Log: debug.log
from storycap.
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.
Hi @alexeybondarenko @camsloanftc I merged #14 PR. Released it as v0.8.0
🎉
Please check when you have time :)
from storycap.
@tsuyoshiwada 👍 it works. I think we can close it.
from storycap.
@alexeybondarenko Thanks 😃 ! Close this Issue.
from storycap.
Can confirm this works in 0.8.0 as well. Thanks!
from storycap.
Related Issues (20)
- [Feat] Allow running chromium with headless=new
- navigator.pdfViewerEnabled seems to be disabled
- Add waitUntil option to support wait for networkidle0
- Failed to capture a screenshot for stories with click/focus options: Error: failed to find element matching selector HOT 1
- waitFor leads to timeout with storybook 7 HOT 4
- component triggered by storybook "play" is missing in the captured image
- no npm bin files published at [email protected] HOT 1
- no parsers registered for: "+(Act" when running storycap @storycap4 HOT 2
- [Question] Why capture whole page instead of element? HOT 1
- sometimes `disable-animation.css` might not applied as expected
- [Question] Why `waitBrowserMetricsStable` before considering `scOpt.skip`? HOT 2
- Navigation timeout of 30000 ms exceeded while waiting for stories definition HOT 1
- cli: -p doesn't work
- Error: failed to find element matching selector inside CapturingBrowser.resetIfTouched() HOT 1
- Error: @storybook/react 7.3.2 withScreenshot in preview.tsx HOT 2
- [Question] Can I use regex in the exclude option? HOT 1
- storybook 7 support? HOT 8
- Unreliable results with more than 1 for `--parallel`
- File separators in viewport keys are treated as file separators in the filesystem
- Chrome Canary processes continue after CLI ends.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storycap.