-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test] Add visual regression tests #1081
Changes from all commits
21731f3
d651467
a156d08
319bb2e
6d35276
66aa800
cb78edb
4f961d6
f60a6a6
204ef16
e9644d6
c03fba7
ebb8687
621b152
2680307
40cf744
2606b57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,6 @@ const GlobalStyle = createGlobalStyle` | |
width: 100%; | ||
} | ||
|
||
.main-container { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need to change that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm removing dead CSS code (at least, it's the objective) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well I think it should be done in the demo move to the doc PR... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't intend to break the demo-app if it's what you assume. I can definitely revert. |
||
position: relative; | ||
flex-grow: 1; | ||
box-sizing: border-box; | ||
} | ||
|
||
.fill-space, | ||
.fill-abs, | ||
.fill { | ||
|
@@ -49,16 +43,6 @@ const GlobalStyle = createGlobalStyle` | |
right: 0; | ||
} | ||
|
||
.flex-col { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.flex-row { | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
|
||
.grow { | ||
flex-grow: 1; | ||
} | ||
|
@@ -67,45 +51,9 @@ const GlobalStyle = createGlobalStyle` | |
justify-content: center; | ||
} | ||
|
||
.action-bar { | ||
display: flex; | ||
justify-content: center; | ||
|
||
button { | ||
margin-right: 20px; | ||
} | ||
} | ||
|
||
.storybook-img { | ||
width: 30px; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.big-device { | ||
display: none !important; | ||
} | ||
} | ||
|
||
.negative { | ||
color: #d20704; | ||
} | ||
|
||
.positive { | ||
color: #008508; | ||
} | ||
|
||
.info-icon { | ||
color: #2196f3; | ||
align-self: center; | ||
} | ||
|
||
.bad { | ||
background: rgba(255, 128, 171, 0.4); | ||
} | ||
|
||
.good { | ||
background: rgba(185, 246, 202, 0.4); | ||
} | ||
`; | ||
|
||
const StyledApp = styled.div` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// import './style/real-data-stories.css'; | ||
import { | ||
generateTotalPrice, | ||
randomCommodity, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// import './style/real-data-stories.css'; | ||
import { | ||
generateName, | ||
randomAvatar, | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a way to reduce the number of scripts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You only have to run one script
yarn test:regressions
locally. The others are here to help debug (when working on improving the regression generation tool.