Skip to content

Commit 2c8c6f1

Browse files
authored
Merge pull request #150 from ZEISS/develop
Elevate
2 parents 817152f + 577b0fd commit 2c8c6f1

File tree

90 files changed

+4505
-1717
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4505
-1717
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
# Precise UI Changelog
2+
## 0.7.0
3+
4+
- Fixed horizontal padding for InputInfo and InputError
5+
- Hide info element on open Autocomplete list
6+
- Fixed overview pagination elements' layout in IE 11
7+
- Fixed display of label, placeholder and info on AutocompleteTagBuilder
8+
- Fixed toaster action click area
9+
- Fixed two cross(clear) buttons displayed inside TextField in IE 11
10+
- Fixed `Styled Input Box` flex layout for IE 11
11+
- Fixed `FileUploader` background blocking area
12+
- New `DateField`
13+
- Show FileUploader on top of modal
14+
- Improved `AccordionTable` sorting (empty groups)
15+
16+
## 0.6.2
17+
18+
- Fixed notification overflow in IE11
19+
- Fixed Carousel component to make carousel item clickable
220

321
## 0.6.1
422

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,38 @@ npm run test:unit --coverage
160160

161161
For unit tests we use Jest. We recommend using snapshot tests (which are done via enzyme and some JSON snapshot serializer).
162162

163+
#### Visual testing
164+
165+
Visual snapshots are located in `/integration/__image_snapshots__`.
166+
167+
When the testing runs it renders components from `[componentName]/Example.md`, makes screenshots and compares them to the previous version screenshots.
168+
169+
To run the testing locally Docker should be installed.
170+
171+
```sh
172+
npm run test:visual
173+
```
174+
175+
Once a component was changed, added or removed then snapshots should be updated.
176+
To update snapshots:
177+
```sh
178+
npm run test:visual -- -u
179+
```
180+
181+
In some cases (i.e components with animations) it's needed to skip the test. It can be done in the next way: update Example.md file:
182+
```
183+
```js { "props": { "data-skip": true } }
184+
185+
<Component />
186+
```
187+
In some cases it's needed to tell visual test to wait before doing a snapshot. It can be done in the next way: update Example.md file:
188+
189+
```
190+
```js { "props": { "data-wait": 500 } }
191+
192+
<Component />
193+
```
194+
163195
#### Adding new icons
164196

165197
The list of all imported icons is in `/tools/icongen.config`. After modifying the list you should run `npm run icongen` or it will be run on prepush.
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
Loading
Loading
Binary file not shown.
Loading
Loading
22 Bytes
Loading
9.76 KB
Loading
Loading
Loading
Loading
Loading
Loading
-41 Bytes
Loading
-41 Bytes
Loading
Loading
Loading
Loading

jest.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ module.exports = {
1212
diagnostics: false,
1313
},
1414
},
15+
moduleNameMapper: {
16+
'\\.(s?css|less)$': 'identity-obj-proxy',
17+
},
1518
};

0 commit comments

Comments
 (0)