Comments (7)
I have this same issue
I don't really see the difference that the first image sees -- ran in circle ci
from loki.
@maniator I solved an issue for myself with next hack:
.storybook/preview-head.html
:
<script>
(function() {
var isLocalFileSession = !window.location.href.startsWith('http');
if (isLocalFileSession) {
console.log('[UI-LIB: WARNING] Please keep in mind, that some animations and styles are patched. Check the file `preview-head.html');
var style = document.createElement('style');
// https://dev.webonomic.nl/how-to-disable-css-transforms-transistions-and-animations
style.innerHTML = `
*, :before, :after {
animation-duration: 0s !important;
}
/*
ESRI relies on external resources,
so it might behave upredictable depends on environment
*/
.esri-view-root {
opacity: 0;
}
`;
window.document.head.appendChild(style);
}
})();
</script>
from loki.
@vvscode My issue mainly seems to be with svg rendering locally vs on CI.
That is where all the diffs are -- in SVGs
from loki.
@maniator following hack above - you can just hide svg elements from capturing
add opacity: 0
for failed elements (see .esr-view-root
- the same example )
from loki.
@maniator following hack above - you can just hide svg elements from capturing
add
opacity: 0
for failed elements (see.esr-view-root
- the same example )
@vvscode but these are svgs loaded with css throughout storybook, how do we focus on all of them?
from loki.
@vvscode I'm trying to support gitlab in a nice way, how did you solve it?
from loki.
@vvscode but these are svgs loaded with css throughout storybook, how do we focus on all of them?
Didn't get. Hack above allows you to ignore some elements from screenshots. In my case, it was a map. In your case, it might be some other elements. I know - this is a workaround, but that's all I found
@vvscode I'm trying to support gitlab in a nice way, how did you solve it?
Looks like I don't understand ((
from loki.
Related Issues (20)
- Fail to fetch stories in chrome.app: storybook v7, loki 0.32 HOT 1
- Problem with Continuous Integration - Error: ENOENT: no such file or directory, open '/root/.aws/config'
- How can I run loki test against a specific file? HOT 5
- Failed to load locales or server is down HOT 1
- How to view test screenshots results in github actions HOT 2
- Storybook fonts still failing to load from within Docker as of version 0.32 HOT 3
- Failed to load stories in chrome.docker, loki version 0.32.0 HOT 5
- chrome.docker: Fetching stories stuck
- Unable to resolve "hoist-non-react-statics" on RN
- Docker container doesn't stop
- Loki is not supporting node 14 but lambda only runs on node 14. HOT 4
- @loki/target-chrome-app has an undeclared dependency on @loki/core [0.33.0]
- A new command line argument so you can provide the path to the loki config file
- Update wait-on to the latest version to fix CVE-2023-45857 vulnerability
- Command failed with exit code 125 HOT 3
- example-react "Animation" tests fails
- Random false positives when testing stories for components that have not been modified
- Storybook 8 compatibility HOT 6
- chrome.docker differences when running in CI compared to on MacOS HOT 2
- React Native Example
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 loki.