Skip to content
Snippets Groups Projects
Commit 62d2c2ee authored by Aanand Prasad's avatar Aanand Prasad Committed by Jure
Browse files

test(ui): fix volatile snapshot tests

parent bb339cab
No related branches found
No related tags found
No related merge requests found
import React from 'react' import React from 'react'
import { shallow, mount, render } from 'enzyme' import { shallow, mount, render } from 'enzyme'
import renderer from 'react-test-renderer' import renderer from 'react-test-renderer'
import 'jest-styled-components'
import AlignmentBox from '../src/atoms/AlignmentBox' import AlignmentBox from '../src/atoms/AlignmentBox'
import AlignmentBoxWithLabel from '../src/molecules/AlignmentBoxWithLabel' import AlignmentBoxWithLabel from '../src/molecules/AlignmentBoxWithLabel'
......
import React from 'react' import React from 'react'
import { shallow, mount } from 'enzyme' import { shallow, mount } from 'enzyme'
import renderer from 'react-test-renderer' import renderer from 'react-test-renderer'
import 'jest-styled-components'
import AlignmentBoxWithLabel from '../src/molecules/AlignmentBoxWithLabel' import AlignmentBoxWithLabel from '../src/molecules/AlignmentBoxWithLabel'
import AlignmentTool from '../src/molecules/AlignmentTool' import AlignmentTool from '../src/molecules/AlignmentTool'
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AlignmentBoxWithLabel is rendered correctly 1`] = ` exports[`AlignmentBoxWithLabel is rendered correctly 1`] = `
.c0 {
box-shadow: inset 0 0 0 2px rgba(255,255,255,1);
cursor: pointer;
height: 26px;
width: 17px;
border-style: solid;
border-color: #666;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
background-color: transparent;
}
.c0:hover {
background-color: #b3b3b3;
}
<div <div
className="root" className="root"
> >
...@@ -10,7 +28,7 @@ exports[`AlignmentBoxWithLabel is rendered correctly 1`] = ` ...@@ -10,7 +28,7 @@ exports[`AlignmentBoxWithLabel is rendered correctly 1`] = `
Left Left
</span> </span>
<div <div
className="sc-bdVaJa iAeTlR" className="c0"
id="left" id="left"
onClick={[Function]} onClick={[Function]}
role="presentation" role="presentation"
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`AlignmentTool is rendered correctly 1`] = ` exports[`AlignmentTool is rendered correctly 1`] = `
.c0 {
box-shadow: inset 0 0 0 2px rgba(255,255,255,1);
cursor: pointer;
height: 26px;
width: 17px;
border-style: solid;
border-color: #666;
border-top-width: 1px;
border-right-width: 0;
border-bottom-width: 1px;
border-left-width: 1px;
background-color: transparent;
}
.c0:hover {
background-color: #b3b3b3;
}
.c1 {
box-shadow: inset 0 0 0 2px rgba(255,255,255,1);
cursor: pointer;
height: 26px;
width: 17px;
border-style: solid;
border-color: #666;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 0;
background-color: transparent;
}
.c1:hover {
background-color: #b3b3b3;
}
<div <div
className="root" className="root"
> >
...@@ -13,7 +49,7 @@ exports[`AlignmentTool is rendered correctly 1`] = ` ...@@ -13,7 +49,7 @@ exports[`AlignmentTool is rendered correctly 1`] = `
Left Left
</span> </span>
<div <div
className="sc-bdVaJa ieYRgr" className="c0"
id="left" id="left"
onClick={[Function]} onClick={[Function]}
role="presentation" role="presentation"
...@@ -31,7 +67,7 @@ exports[`AlignmentTool is rendered correctly 1`] = ` ...@@ -31,7 +67,7 @@ exports[`AlignmentTool is rendered correctly 1`] = `
right right
</span> </span>
<div <div
className="sc-bdVaJa fCBdDA" className="c1"
id="right" id="right"
onClick={[Function]} onClick={[Function]}
role="presentation" role="presentation"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment