-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into input-1272
- Loading branch information
Showing
308 changed files
with
6,784 additions
and
90,964 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,14 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [1.1.5](https://github.com/skbkontur/retail-ui/compare/[email protected]@1.1.5) (2019-03-26) | ||
|
||
**Note:** Version bump only for package react-ui-screenshot-tests | ||
|
||
|
||
|
||
|
||
|
||
## [1.1.4](https://github.com/skbkontur/retail-ui/compare/[email protected]@1.1.4) (2019-03-19) | ||
|
||
**Note:** Version bump only for package react-ui-screenshot-tests | ||
|
4 changes: 2 additions & 2 deletions
4
packages/react-ui-screenshot-tests/gemini/screens/Icon/idle/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
packages/react-ui-screenshot-tests/gemini/screens/Icon/idle/firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
packages/react-ui-screenshot-tests/gemini/screens/Icon/idle/ie11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions
3
...gemini/screens/Tooltip/with Input and switchable content/clear input/chrome.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...emini/screens/Tooltip/with Input and switchable content/clear input/firefox.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...s/gemini/screens/Tooltip/with Input and switchable content/clear input/ie11.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ni/screens/Tooltip/with Input and switchable content/focus and types/chrome.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...i/screens/Tooltip/with Input and switchable content/focus and types/firefox.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...mini/screens/Tooltip/with Input and switchable content/focus and types/ie11.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,116 +1,132 @@ | ||
/* global gemini */ | ||
var renderStory = require('./utils').renderStory; | ||
|
||
gemini.suite('Tooltip', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'static tooltip')) | ||
.setCaptureElements('#test-element') | ||
.capture('simple'); | ||
}); | ||
gemini.suite('Tooltip', () => { | ||
gemini.suite('static', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'static tooltip')) | ||
.setCaptureElements('#test-element') | ||
.capture('simple'); | ||
}); | ||
|
||
gemini.suite('Tooltip left', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'tooltip left')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
gemini.suite('left', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'tooltip left')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
|
||
gemini.suite('Tooltip right', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'tooltip right')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
gemini.suite('right', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'tooltip right')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
|
||
gemini.suite('Tooltip bottom', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'tooltip bottom')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
gemini.suite('bottom', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'tooltip bottom')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
|
||
gemini.suite('Tooltip wrap inline-block', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'Tooltips without wrapper around inline-block with 50% width')) | ||
.setCaptureElements('#test-element') | ||
.capture('hover', (actions, find) => { | ||
actions.mouseMove(find('textarea')); | ||
}); | ||
}); | ||
gemini.suite('wrap inline-block', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'Tooltips without wrapper around inline-block with 50% width')) | ||
.setCaptureElements('#test-element') | ||
.capture('hover', (actions, find) => { | ||
actions.mouseMove(find('textarea')); | ||
}); | ||
}); | ||
|
||
gemini.suite('Opened tooltip without wrapper', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'Opened tooltip without wrapper')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
gemini.suite('Opened without wrapper', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'Opened tooltip without wrapper')) | ||
.setCaptureElements('#test-element') | ||
.capture('plain'); | ||
}); | ||
|
||
gemini.suite('Opened tooltip by focus (Button)', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'focus tooltip')) | ||
.setCaptureElements('#test-element') | ||
.capture('01 - plain') | ||
.capture('02 - focus', actions => { | ||
actions.sendKeys(gemini.TAB); | ||
}) | ||
.capture('03 - blur', (actions, find) => { | ||
actions.sendKeys(find('button'), gemini.TAB); | ||
}) | ||
.skip.in('firefox', 'в firefox завезли поддержку focusin/focusout только с 52ой версии'); | ||
}); | ||
gemini.suite('Opened by focus (Button)', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'focus tooltip')) | ||
.setCaptureElements('#test-element') | ||
.capture('01 - plain') | ||
.capture('02 - focus', actions => { | ||
actions.sendKeys(gemini.TAB); | ||
}) | ||
.capture('03 - blur', (actions, find) => { | ||
actions.sendKeys(find('button'), gemini.TAB); | ||
}) | ||
.skip.in('firefox', 'в firefox завезли поддержку focusin/focusout только с 52ой версии'); | ||
}); | ||
|
||
gemini.suite('Opened tooltip by focus (input)', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'focus tooltip (native input)')) | ||
.setCaptureElements('#test-element') | ||
.capture('01 - plain') | ||
.capture('02 - focus', (actions, find) => { | ||
actions.focus(find('input')); | ||
}) | ||
.capture('03 - blur', (actions, find) => { | ||
actions.sendKeys(find('input'), gemini.TAB); | ||
}) | ||
.skip.in('firefox', 'в firefox завезли поддержку focusin/focusout только с 52ой версии'); | ||
}); | ||
gemini.suite('Opened by focus (input)', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'focus tooltip (native input)')) | ||
.setCaptureElements('#test-element') | ||
.capture('01 - plain') | ||
.capture('02 - focus', (actions, find) => { | ||
actions.focus(find('input')); | ||
}) | ||
.capture('03 - blur', (actions, find) => { | ||
actions.sendKeys(find('input'), gemini.TAB); | ||
}) | ||
.skip.in('firefox', 'в firefox завезли поддержку focusin/focusout только с 52ой версии'); | ||
}); | ||
|
||
gemini.suite('with external dynamic content', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'Tooltip with external dynamic content')) | ||
.setCaptureElements('#test-element') | ||
.capture('01 - plain') | ||
|
||
gemini.suite('Tooltip with external dynamic content', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'Tooltip with external dynamic content')) | ||
.setCaptureElements('#test-element') | ||
.capture('01 - plain') | ||
.capture('02 - changes top position if does not fit', (actions, find) => { | ||
actions.click(find('#Container-0 button')); | ||
}) | ||
.capture('03 - does not change position back on shrink', (actions, find) => { | ||
actions.click(find('#Container-0 button')); | ||
}) | ||
|
||
.capture('02 - changes top position if does not fit', (actions, find) => { | ||
actions.click(find('#Container-0 button')); | ||
}) | ||
.capture('03 - does not change position back on shrink', (actions, find) => { | ||
actions.click(find('#Container-0 button')); | ||
}) | ||
.capture('04 - does not change top position if fits', (actions, find) => { | ||
actions.click(find('#Container-1 button')); | ||
}) | ||
.capture('05 - does not change position on shrink', (actions, find) => { | ||
actions.click(find('#Container-1 button')); | ||
}) | ||
|
||
.capture('04 - does not change top position if fits', (actions, find) => { | ||
actions.click(find('#Container-1 button')); | ||
}) | ||
.capture('05 - does not change position on shrink', (actions, find) => { | ||
actions.click(find('#Container-1 button')); | ||
}) | ||
.capture('06 - changes left position if does not fit', (actions, find) => { | ||
actions.click(find('#Container-2 button')); | ||
}) | ||
.capture('07 - does not change position back on shrink', (actions, find) => { | ||
actions.click(find('#Container-2 button')); | ||
}) | ||
|
||
.capture('06 - changes left position if does not fit', (actions, find) => { | ||
actions.click(find('#Container-2 button')); | ||
}) | ||
.capture('07 - does not change position back on shrink', (actions, find) => { | ||
actions.click(find('#Container-2 button')); | ||
}) | ||
.capture('08 - does not change bottom position if fits', (actions, find) => { | ||
actions.click(find('#Container-3 button')); | ||
}) | ||
.capture('09 - does not change position on shrink', (actions, find) => { | ||
actions.click(find('#Container-3 button')); | ||
}) | ||
|
||
.capture('08 - does not change bottom position if fits', (actions, find) => { | ||
actions.click(find('#Container-3 button')); | ||
}) | ||
.capture('09 - does not change position on shrink', (actions, find) => { | ||
actions.click(find('#Container-3 button')); | ||
}) | ||
.capture('10 - does not change bottom position if does not fit', (actions, find) => { | ||
actions.click(find('#Container-4 button')); | ||
}) | ||
.capture('11 - does not change position on shrink', (actions, find) => { | ||
actions.click(find('#Container-4 button')); | ||
}); | ||
}); | ||
gemini.suite('with Input and switchable content', suite => { | ||
suite | ||
.before(renderStory('Tooltip', 'Tooltip with Input and switchable content')) | ||
.setCaptureElements('#test-element') | ||
.capture('focus and types', (actions, find) => { | ||
const input = find('input'); | ||
|
||
.capture('10 - does not change bottom position if does not fit', (actions, find) => { | ||
actions.click(find('#Container-4 button')); | ||
}) | ||
.capture('11 - does not change position on shrink', (actions, find) => { | ||
actions.click(find('#Container-4 button')); | ||
}); | ||
actions.click(input); | ||
actions.sendKeys(input, 'Hi'); | ||
}) | ||
.capture('clear input', (actions, find) => { | ||
actions.sendKeys(find('input'), [gemini.BACK_SPACE, gemini.BACK_SPACE]); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,3 @@ | ||
{ | ||
"presets": [["es2015", { "loose": true, "modules": false }], "stage-0", "react"], | ||
"env": { | ||
"storybook": { | ||
"presets": [["es2015", { "loose": true }], "stage-0", "react"], | ||
"plugins": [ | ||
[ | ||
"transform-define", | ||
{ | ||
"REACT_UI_PACKAGE": "retail-ui" | ||
} | ||
] | ||
] | ||
}, | ||
"production": { | ||
"presets": [["es2015", { "loose": true }], "stage-0", "react"], | ||
"plugins": [ | ||
[ | ||
"transform-define", | ||
{ | ||
"REACT_UI_PACKAGE": "retail-ui" | ||
} | ||
] | ||
] | ||
} | ||
} | ||
"presets": ["es2015", "stage-0", "react"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.