@skbkontur/react-ui 5.0.8 → 5.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +239 -0
- package/cjs/components/Button/__creevey__/Button.creevey.mts +251 -0
- package/cjs/components/Calendar/__creevey__/Calendar.creevey.mts +74 -0
- package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.mts +243 -0
- package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.mts +541 -0
- package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +81 -0
- package/cjs/components/DateInput/__creevey__/DateInput.creevey.mts +156 -0
- package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.mts +209 -0
- package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.mts +184 -0
- package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +263 -0
- package/cjs/components/FxInput/__creevey__/FxInput.creevey.mts +21 -0
- package/cjs/components/GlobalLoader/GlobalLoader.d.ts +1 -0
- package/cjs/components/GlobalLoader/GlobalLoader.js +6 -2
- package/cjs/components/GlobalLoader/GlobalLoader.js.map +1 -1
- package/cjs/components/Group/__creevey__/Group.creevey.mts +19 -0
- package/cjs/components/Hint/__creevey__/Hint.creevey.mts +68 -0
- package/cjs/components/Input/__creevey__/Input.creevey.mts +239 -0
- package/cjs/components/Kebab/__creevey__/Kebab.creevey.mts +147 -0
- package/cjs/components/Link/__creevey__/Link.creevey.mts +162 -0
- package/cjs/components/Loader/__creevey__/Loader.creevey.mts +35 -0
- package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +216 -0
- package/cjs/components/Modal/Modal.js +7 -10
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/ModalContext.d.ts +3 -3
- package/cjs/components/Modal/ModalContext.js.map +1 -1
- package/cjs/components/Modal/ModalFooter.js +2 -2
- package/cjs/components/Modal/ModalFooter.js.map +1 -1
- package/cjs/components/Modal/ModalHeader.js +1 -1
- package/cjs/components/Modal/ModalHeader.js.map +1 -1
- package/cjs/components/Modal/__creevey__/Modal.creevey.mts +281 -0
- package/cjs/components/Paging/__creevey__/Paging.creevey.mts +97 -0
- package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +38 -0
- package/cjs/components/Radio/__creevey__/Radio.creevey.mts +28 -0
- package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +86 -0
- package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +247 -0
- package/cjs/components/Select/Select.d.ts +1 -6
- package/cjs/components/Select/Select.js +7 -10
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/__creevey__/Select.creevey.mts +293 -0
- package/cjs/components/Select/tids.d.ts +5 -0
- package/cjs/components/Select/tids.js +5 -0
- package/cjs/components/Select/tids.js.map +1 -0
- package/cjs/components/SidePage/__creevey__/SidePage.creevey.mts +319 -0
- package/cjs/components/Sticky/__creevey__/Sticky.creevey.mts +98 -0
- package/cjs/components/Switcher/__creevey__/Switcher.creevey.mts +24 -0
- package/cjs/components/Tabs/__creevey__/Tabs.creevey.mts +239 -0
- package/cjs/components/Textarea/__creevey__/Textarea.creevey.mts +177 -0
- package/cjs/components/Toast/__creevey__/Toast.creevey.mts +54 -0
- package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +87 -0
- package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +414 -0
- package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.mts +533 -0
- package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +131 -0
- package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +48 -0
- package/cjs/internal/CustomComboBox/CustomComboBox.d.ts +1 -3
- package/cjs/internal/CustomComboBox/CustomComboBox.js +4 -6
- package/cjs/internal/CustomComboBox/CustomComboBox.js.map +1 -1
- package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +30 -0
- package/cjs/internal/CustomComboBox/tids.d.ts +3 -0
- package/cjs/internal/CustomComboBox/tids.js +3 -0
- package/cjs/internal/CustomComboBox/tids.js.map +1 -0
- package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +25 -0
- package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +83 -0
- package/cjs/internal/Menu/__creevey__/Menu.creevey.mts +90 -0
- package/cjs/internal/PopupMenu/PopupMenu.d.ts +1 -5
- package/cjs/internal/PopupMenu/PopupMenu.js +8 -10
- package/cjs/internal/PopupMenu/PopupMenu.js.map +1 -1
- package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +37 -0
- package/cjs/internal/PopupMenu/tids.d.ts +4 -0
- package/cjs/internal/PopupMenu/tids.js +4 -0
- package/cjs/internal/PopupMenu/tids.js.map +1 -0
- package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +68 -0
- package/cjs/internal/ThemeShowcase/VariablesCollector.js +1 -0
- package/cjs/internal/ThemeShowcase/VariablesCollector.js.map +1 -1
- package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.mts +228 -0
- package/cjs/lib/delay.d.ts +1 -0
- package/cjs/lib/delay.js +3 -0
- package/cjs/lib/delay.js.map +1 -0
- package/cjs/lib/utils.d.ts +3 -3
- package/cjs/lib/utils.js +5 -4
- package/cjs/lib/utils.js.map +1 -1
- package/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +239 -0
- package/components/Button/__creevey__/Button.creevey.mts +251 -0
- package/components/Calendar/__creevey__/Calendar.creevey.mts +74 -0
- package/components/Checkbox/__creevey__/Checkbox.creevey.mts +243 -0
- package/components/ComboBox/__creevey__/ComboBox.creevey.mts +541 -0
- package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +81 -0
- package/components/DateInput/__creevey__/DateInput.creevey.mts +156 -0
- package/components/DatePicker/__creevey__/DatePicker.creevey.mts +209 -0
- package/components/Dropdown/__creevey__/Dropdown.creevey.mts +184 -0
- package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +263 -0
- package/components/FxInput/__creevey__/FxInput.creevey.mts +21 -0
- package/components/GlobalLoader/GlobalLoader/GlobalLoader.js +13 -5
- package/components/GlobalLoader/GlobalLoader/GlobalLoader.js.map +1 -1
- package/components/GlobalLoader/GlobalLoader.d.ts +1 -0
- package/components/Group/__creevey__/Group.creevey.mts +19 -0
- package/components/Hint/__creevey__/Hint.creevey.mts +68 -0
- package/components/Input/__creevey__/Input.creevey.mts +239 -0
- package/components/Kebab/__creevey__/Kebab.creevey.mts +147 -0
- package/components/Link/__creevey__/Link.creevey.mts +162 -0
- package/components/Loader/__creevey__/Loader.creevey.mts +35 -0
- package/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +216 -0
- package/components/Modal/Modal/Modal.js +4 -16
- package/components/Modal/Modal/Modal.js.map +1 -1
- package/components/Modal/ModalContext/ModalContext.js.map +1 -1
- package/components/Modal/ModalContext.d.ts +3 -3
- package/components/Modal/ModalFooter/ModalFooter.js +2 -2
- package/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
- package/components/Modal/ModalHeader/ModalHeader.js +1 -1
- package/components/Modal/ModalHeader/ModalHeader.js.map +1 -1
- package/components/Modal/__creevey__/Modal.creevey.mts +281 -0
- package/components/Paging/__creevey__/Paging.creevey.mts +97 -0
- package/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +38 -0
- package/components/Radio/__creevey__/Radio.creevey.mts +28 -0
- package/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +86 -0
- package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +247 -0
- package/components/Select/Select/Select.js +2 -5
- package/components/Select/Select/Select.js.map +1 -1
- package/components/Select/Select.d.ts +1 -6
- package/components/Select/__creevey__/Select.creevey.mts +293 -0
- package/components/Select/tids/package.json +6 -0
- package/components/Select/tids/tids.js +5 -0
- package/components/Select/tids/tids.js.map +1 -0
- package/components/Select/tids.d.ts +5 -0
- package/components/SidePage/__creevey__/SidePage.creevey.mts +319 -0
- package/components/Sticky/__creevey__/Sticky.creevey.mts +98 -0
- package/components/Switcher/__creevey__/Switcher.creevey.mts +24 -0
- package/components/Tabs/__creevey__/Tabs.creevey.mts +239 -0
- package/components/Textarea/__creevey__/Textarea.creevey.mts +177 -0
- package/components/Toast/__creevey__/Toast.creevey.mts +54 -0
- package/components/Toggle/__creevey__/Toggle.creevey.mts +87 -0
- package/components/TokenInput/__creevey__/TokenInput.creevey.mts +414 -0
- package/components/Tooltip/__creevey__/Tooltip.creevey.mts +533 -0
- package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +131 -0
- package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +48 -0
- package/internal/CustomComboBox/CustomComboBox/CustomComboBox.js +1 -3
- package/internal/CustomComboBox/CustomComboBox/CustomComboBox.js.map +1 -1
- package/internal/CustomComboBox/CustomComboBox.d.ts +1 -3
- package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +30 -0
- package/internal/CustomComboBox/tids/package.json +6 -0
- package/internal/CustomComboBox/tids/tids.js +3 -0
- package/internal/CustomComboBox/tids/tids.js.map +1 -0
- package/internal/CustomComboBox/tids.d.ts +3 -0
- package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +25 -0
- package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +83 -0
- package/internal/Menu/__creevey__/Menu.creevey.mts +90 -0
- package/internal/PopupMenu/PopupMenu/PopupMenu.js +2 -4
- package/internal/PopupMenu/PopupMenu/PopupMenu.js.map +1 -1
- package/internal/PopupMenu/PopupMenu.d.ts +1 -5
- package/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +37 -0
- package/internal/PopupMenu/tids/package.json +6 -0
- package/internal/PopupMenu/tids/tids.js +4 -0
- package/internal/PopupMenu/tids/tids.js.map +1 -0
- package/internal/PopupMenu/tids.d.ts +4 -0
- package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +68 -0
- package/internal/ThemeShowcase/VariablesCollector/VariablesCollector.js +2 -0
- package/internal/ThemeShowcase/VariablesCollector/VariablesCollector.js.map +1 -1
- package/internal/ZIndex/__creevey__/ZIndex.creevey.mts +228 -0
- package/lib/delay/delay.js +6 -0
- package/lib/delay/delay.js.map +1 -0
- package/lib/delay/package.json +6 -0
- package/lib/delay.d.ts +1 -0
- package/lib/utils/utils.js +3 -7
- package/lib/utils/utils.js.map +1 -1
- package/lib/utils.d.ts +3 -3
- package/package.json +6 -5
- package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.js +0 -239
- package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.js.map +0 -1
- package/cjs/components/Button/__creevey__/Button.creevey.js +0 -250
- package/cjs/components/Button/__creevey__/Button.creevey.js.map +0 -1
- package/cjs/components/Calendar/__creevey__/Calendar.creevey.js +0 -74
- package/cjs/components/Calendar/__creevey__/Calendar.creevey.js.map +0 -1
- package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.js +0 -242
- package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.js.map +0 -1
- package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.js +0 -540
- package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.js.map +0 -1
- package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.js +0 -81
- package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.js.map +0 -1
- package/cjs/components/DateInput/__creevey__/DateInput.creevey.js +0 -155
- package/cjs/components/DateInput/__creevey__/DateInput.creevey.js.map +0 -1
- package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.js +0 -209
- package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.js.map +0 -1
- package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.js +0 -184
- package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.js.map +0 -1
- package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.js +0 -262
- package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.js.map +0 -1
- package/cjs/components/FxInput/__creevey__/FxInput.creevey.js +0 -21
- package/cjs/components/FxInput/__creevey__/FxInput.creevey.js.map +0 -1
- package/cjs/components/Group/__creevey__/Group.creevey.js +0 -19
- package/cjs/components/Group/__creevey__/Group.creevey.js.map +0 -1
- package/cjs/components/Hint/__creevey__/Hint.creevey.js +0 -68
- package/cjs/components/Hint/__creevey__/Hint.creevey.js.map +0 -1
- package/cjs/components/Input/__creevey__/Input.creevey.js +0 -239
- package/cjs/components/Input/__creevey__/Input.creevey.js.map +0 -1
- package/cjs/components/Kebab/__creevey__/Kebab.creevey.js +0 -146
- package/cjs/components/Kebab/__creevey__/Kebab.creevey.js.map +0 -1
- package/cjs/components/Link/__creevey__/Link.creevey.js +0 -161
- package/cjs/components/Link/__creevey__/Link.creevey.js.map +0 -1
- package/cjs/components/Loader/__creevey__/Loader.creevey.js +0 -34
- package/cjs/components/Loader/__creevey__/Loader.creevey.js.map +0 -1
- package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.js +0 -219
- package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.js.map +0 -1
- package/cjs/components/Modal/__creevey__/Modal.creevey.js +0 -258
- package/cjs/components/Modal/__creevey__/Modal.creevey.js.map +0 -1
- package/cjs/components/Paging/__creevey__/Paging.creevey.js +0 -96
- package/cjs/components/Paging/__creevey__/Paging.creevey.js.map +0 -1
- package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.js +0 -38
- package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.js.map +0 -1
- package/cjs/components/Radio/__creevey__/Radio.creevey.js +0 -27
- package/cjs/components/Radio/__creevey__/Radio.creevey.js.map +0 -1
- package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.js +0 -85
- package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.js.map +0 -1
- package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.js +0 -247
- package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.js.map +0 -1
- package/cjs/components/Select/__creevey__/Select.creevey.js +0 -284
- package/cjs/components/Select/__creevey__/Select.creevey.js.map +0 -1
- package/cjs/components/SidePage/__creevey__/SidePage.creevey.js +0 -313
- package/cjs/components/SidePage/__creevey__/SidePage.creevey.js.map +0 -1
- package/cjs/components/Sticky/__creevey__/Sticky.creevey.js +0 -98
- package/cjs/components/Sticky/__creevey__/Sticky.creevey.js.map +0 -1
- package/cjs/components/Switcher/__creevey__/Switcher.creevey.js +0 -24
- package/cjs/components/Switcher/__creevey__/Switcher.creevey.js.map +0 -1
- package/cjs/components/Tabs/__creevey__/Tabs.creevey.js +0 -238
- package/cjs/components/Tabs/__creevey__/Tabs.creevey.js.map +0 -1
- package/cjs/components/Textarea/__creevey__/Textarea.creevey.js +0 -176
- package/cjs/components/Textarea/__creevey__/Textarea.creevey.js.map +0 -1
- package/cjs/components/Toast/__creevey__/Toast.creevey.js +0 -54
- package/cjs/components/Toast/__creevey__/Toast.creevey.js.map +0 -1
- package/cjs/components/Toggle/__creevey__/Toggle.creevey.js +0 -87
- package/cjs/components/Toggle/__creevey__/Toggle.creevey.js.map +0 -1
- package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.js +0 -413
- package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.js.map +0 -1
- package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.js +0 -534
- package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.js.map +0 -1
- package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.js +0 -130
- package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.js.map +0 -1
- package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.js +0 -47
- package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.js.map +0 -1
- package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.js +0 -30
- package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.js.map +0 -1
- package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.js +0 -25
- package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.js.map +0 -1
- package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.js +0 -83
- package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.js.map +0 -1
- package/cjs/internal/Menu/__creevey__/Menu.creevey.js +0 -90
- package/cjs/internal/Menu/__creevey__/Menu.creevey.js.map +0 -1
- package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.js +0 -37
- package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.js.map +0 -1
- package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.js +0 -68
- package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.js.map +0 -1
- package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.js +0 -228
- package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.js.map +0 -1
- package/cjs/lib/styles/HoldSelectionColor.d.ts +0 -1
- package/cjs/lib/styles/HoldSelectionColor.js +0 -9
- package/cjs/lib/styles/HoldSelectionColor.js.map +0 -1
- package/components/Autocomplete/__creevey__/Autocomplete.creevey/Autocomplete.creevey.js +0 -506
- package/components/Autocomplete/__creevey__/Autocomplete.creevey/Autocomplete.creevey.js.map +0 -1
- package/components/Autocomplete/__creevey__/Autocomplete.creevey/package.json +0 -6
- package/components/Autocomplete/__creevey__/Autocomplete.creevey.d.ts +0 -1
- package/components/Button/__creevey__/Button.creevey/Button.creevey.js +0 -396
- package/components/Button/__creevey__/Button.creevey/Button.creevey.js.map +0 -1
- package/components/Button/__creevey__/Button.creevey/package.json +0 -6
- package/components/Button/__creevey__/Button.creevey.d.ts +0 -1
- package/components/Calendar/__creevey__/Calendar.creevey/Calendar.creevey.js +0 -138
- package/components/Calendar/__creevey__/Calendar.creevey/Calendar.creevey.js.map +0 -1
- package/components/Calendar/__creevey__/Calendar.creevey/package.json +0 -6
- package/components/Calendar/__creevey__/Calendar.creevey.d.ts +0 -1
- package/components/Checkbox/__creevey__/Checkbox.creevey/Checkbox.creevey.js +0 -487
- package/components/Checkbox/__creevey__/Checkbox.creevey/Checkbox.creevey.js.map +0 -1
- package/components/Checkbox/__creevey__/Checkbox.creevey/package.json +0 -6
- package/components/Checkbox/__creevey__/Checkbox.creevey.d.ts +0 -1
- package/components/ComboBox/__creevey__/ComboBox.creevey/ComboBox.creevey.js +0 -1043
- package/components/ComboBox/__creevey__/ComboBox.creevey/ComboBox.creevey.js.map +0 -1
- package/components/ComboBox/__creevey__/ComboBox.creevey/package.json +0 -6
- package/components/ComboBox/__creevey__/ComboBox.creevey.d.ts +0 -1
- package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/CurrencyInput.creevey.js +0 -114
- package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/CurrencyInput.creevey.js.map +0 -1
- package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/package.json +0 -6
- package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.ts +0 -1
- package/components/DateInput/__creevey__/DateInput.creevey/DateInput.creevey.js +0 -367
- package/components/DateInput/__creevey__/DateInput.creevey/DateInput.creevey.js.map +0 -1
- package/components/DateInput/__creevey__/DateInput.creevey/package.json +0 -6
- package/components/DateInput/__creevey__/DateInput.creevey.d.ts +0 -1
- package/components/DatePicker/__creevey__/DatePicker.creevey/DatePicker.creevey.js +0 -395
- package/components/DatePicker/__creevey__/DatePicker.creevey/DatePicker.creevey.js.map +0 -1
- package/components/DatePicker/__creevey__/DatePicker.creevey/package.json +0 -6
- package/components/DatePicker/__creevey__/DatePicker.creevey.d.ts +0 -1
- package/components/Dropdown/__creevey__/Dropdown.creevey/Dropdown.creevey.js +0 -417
- package/components/Dropdown/__creevey__/Dropdown.creevey/Dropdown.creevey.js.map +0 -1
- package/components/Dropdown/__creevey__/Dropdown.creevey/package.json +0 -6
- package/components/Dropdown/__creevey__/Dropdown.creevey.d.ts +0 -1
- package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/DropdownMenu.creevey.js +0 -534
- package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/DropdownMenu.creevey.js.map +0 -1
- package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/package.json +0 -6
- package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.ts +0 -1
- package/components/FxInput/__creevey__/FxInput.creevey/FxInput.creevey.js +0 -62
- package/components/FxInput/__creevey__/FxInput.creevey/FxInput.creevey.js.map +0 -1
- package/components/FxInput/__creevey__/FxInput.creevey/package.json +0 -6
- package/components/FxInput/__creevey__/FxInput.creevey.d.ts +0 -1
- package/components/Group/__creevey__/Group.creevey/Group.creevey.js +0 -48
- package/components/Group/__creevey__/Group.creevey/Group.creevey.js.map +0 -1
- package/components/Group/__creevey__/Group.creevey/package.json +0 -6
- package/components/Group/__creevey__/Group.creevey.d.ts +0 -1
- package/components/Hint/__creevey__/Hint.creevey/Hint.creevey.js +0 -127
- package/components/Hint/__creevey__/Hint.creevey/Hint.creevey.js.map +0 -1
- package/components/Hint/__creevey__/Hint.creevey/package.json +0 -6
- package/components/Hint/__creevey__/Hint.creevey.d.ts +0 -1
- package/components/Input/__creevey__/Input.creevey/Input.creevey.js +0 -517
- package/components/Input/__creevey__/Input.creevey/Input.creevey.js.map +0 -1
- package/components/Input/__creevey__/Input.creevey/package.json +0 -6
- package/components/Input/__creevey__/Input.creevey.d.ts +0 -1
- package/components/Kebab/__creevey__/Kebab.creevey/Kebab.creevey.js +0 -278
- package/components/Kebab/__creevey__/Kebab.creevey/Kebab.creevey.js.map +0 -1
- package/components/Kebab/__creevey__/Kebab.creevey/package.json +0 -6
- package/components/Kebab/__creevey__/Kebab.creevey.d.ts +0 -1
- package/components/Link/__creevey__/Link.creevey/Link.creevey.js +0 -238
- package/components/Link/__creevey__/Link.creevey/Link.creevey.js.map +0 -1
- package/components/Link/__creevey__/Link.creevey/package.json +0 -6
- package/components/Link/__creevey__/Link.creevey.d.ts +0 -1
- package/components/Loader/__creevey__/Loader.creevey/Loader.creevey.js +0 -129
- package/components/Loader/__creevey__/Loader.creevey/Loader.creevey.js.map +0 -1
- package/components/Loader/__creevey__/Loader.creevey/package.json +0 -6
- package/components/Loader/__creevey__/Loader.creevey.d.ts +0 -1
- package/components/MaskedInput/__creevey__/MaskedInput.creevey/MaskedInput.creevey.js +0 -405
- package/components/MaskedInput/__creevey__/MaskedInput.creevey/MaskedInput.creevey.js.map +0 -1
- package/components/MaskedInput/__creevey__/MaskedInput.creevey/package.json +0 -6
- package/components/MaskedInput/__creevey__/MaskedInput.creevey.d.ts +0 -1
- package/components/Modal/__creevey__/Modal.creevey/Modal.creevey.js +0 -565
- package/components/Modal/__creevey__/Modal.creevey/Modal.creevey.js.map +0 -1
- package/components/Modal/__creevey__/Modal.creevey/package.json +0 -6
- package/components/Modal/__creevey__/Modal.creevey.d.ts +0 -1
- package/components/Paging/__creevey__/Paging.creevey/Paging.creevey.js +0 -190
- package/components/Paging/__creevey__/Paging.creevey/Paging.creevey.js.map +0 -1
- package/components/Paging/__creevey__/Paging.creevey/package.json +0 -6
- package/components/Paging/__creevey__/Paging.creevey.d.ts +0 -1
- package/components/PasswordInput/__creevey__/PasswordInput.creevey/PasswordInput.creevey.js +0 -83
- package/components/PasswordInput/__creevey__/PasswordInput.creevey/PasswordInput.creevey.js.map +0 -1
- package/components/PasswordInput/__creevey__/PasswordInput.creevey/package.json +0 -6
- package/components/PasswordInput/__creevey__/PasswordInput.creevey.d.ts +0 -1
- package/components/Radio/__creevey__/Radio.creevey/Radio.creevey.js +0 -56
- package/components/Radio/__creevey__/Radio.creevey/Radio.creevey.js.map +0 -1
- package/components/Radio/__creevey__/Radio.creevey/package.json +0 -6
- package/components/Radio/__creevey__/Radio.creevey.d.ts +0 -1
- package/components/RadioGroup/__creevey__/RadioGroup.creevey/RadioGroup.creevey.js +0 -167
- package/components/RadioGroup/__creevey__/RadioGroup.creevey/RadioGroup.creevey.js.map +0 -1
- package/components/RadioGroup/__creevey__/RadioGroup.creevey/package.json +0 -6
- package/components/RadioGroup/__creevey__/RadioGroup.creevey.d.ts +0 -1
- package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/ScrollContainer.creevey.js +0 -488
- package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/ScrollContainer.creevey.js.map +0 -1
- package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/package.json +0 -6
- package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.ts +0 -1
- package/components/Select/__creevey__/Select.creevey/Select.creevey.js +0 -541
- package/components/Select/__creevey__/Select.creevey/Select.creevey.js.map +0 -1
- package/components/Select/__creevey__/Select.creevey/package.json +0 -6
- package/components/Select/__creevey__/Select.creevey.d.ts +0 -1
- package/components/SidePage/__creevey__/SidePage.creevey/SidePage.creevey.js +0 -697
- package/components/SidePage/__creevey__/SidePage.creevey/SidePage.creevey.js.map +0 -1
- package/components/SidePage/__creevey__/SidePage.creevey/package.json +0 -6
- package/components/SidePage/__creevey__/SidePage.creevey.d.ts +0 -1
- package/components/Sticky/__creevey__/Sticky.creevey/Sticky.creevey.js +0 -215
- package/components/Sticky/__creevey__/Sticky.creevey/Sticky.creevey.js.map +0 -1
- package/components/Sticky/__creevey__/Sticky.creevey/package.json +0 -6
- package/components/Sticky/__creevey__/Sticky.creevey.d.ts +0 -1
- package/components/Switcher/__creevey__/Switcher.creevey/Switcher.creevey.js +0 -58
- package/components/Switcher/__creevey__/Switcher.creevey/Switcher.creevey.js.map +0 -1
- package/components/Switcher/__creevey__/Switcher.creevey/package.json +0 -6
- package/components/Switcher/__creevey__/Switcher.creevey.d.ts +0 -1
- package/components/Tabs/__creevey__/Tabs.creevey/Tabs.creevey.js +0 -391
- package/components/Tabs/__creevey__/Tabs.creevey/Tabs.creevey.js.map +0 -1
- package/components/Tabs/__creevey__/Tabs.creevey/package.json +0 -6
- package/components/Tabs/__creevey__/Tabs.creevey.d.ts +0 -1
- package/components/Textarea/__creevey__/Textarea.creevey/Textarea.creevey.js +0 -404
- package/components/Textarea/__creevey__/Textarea.creevey/Textarea.creevey.js.map +0 -1
- package/components/Textarea/__creevey__/Textarea.creevey/package.json +0 -6
- package/components/Textarea/__creevey__/Textarea.creevey.d.ts +0 -1
- package/components/Toast/__creevey__/Toast.creevey/Toast.creevey.js +0 -70
- package/components/Toast/__creevey__/Toast.creevey/Toast.creevey.js.map +0 -1
- package/components/Toast/__creevey__/Toast.creevey/package.json +0 -6
- package/components/Toast/__creevey__/Toast.creevey.d.ts +0 -1
- package/components/Toggle/__creevey__/Toggle.creevey/Toggle.creevey.js +0 -195
- package/components/Toggle/__creevey__/Toggle.creevey/Toggle.creevey.js.map +0 -1
- package/components/Toggle/__creevey__/Toggle.creevey/package.json +0 -6
- package/components/Toggle/__creevey__/Toggle.creevey.d.ts +0 -1
- package/components/TokenInput/__creevey__/TokenInput.creevey/TokenInput.creevey.js +0 -635
- package/components/TokenInput/__creevey__/TokenInput.creevey/TokenInput.creevey.js.map +0 -1
- package/components/TokenInput/__creevey__/TokenInput.creevey/package.json +0 -6
- package/components/TokenInput/__creevey__/TokenInput.creevey.d.ts +0 -1
- package/components/Tooltip/__creevey__/Tooltip.creevey/Tooltip.creevey.js +0 -1171
- package/components/Tooltip/__creevey__/Tooltip.creevey/Tooltip.creevey.js.map +0 -1
- package/components/Tooltip/__creevey__/Tooltip.creevey/package.json +0 -6
- package/components/Tooltip/__creevey__/Tooltip.creevey.d.ts +0 -1
- package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/TooltipMenu.creevey.js +0 -277
- package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/TooltipMenu.creevey.js.map +0 -1
- package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/package.json +0 -6
- package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.ts +0 -1
- package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/CloseButtonIcon.creevey.js +0 -78
- package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/CloseButtonIcon.creevey.js.map +0 -1
- package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/package.json +0 -6
- package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.ts +0 -1
- package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/ComboBoxView.creevey.js +0 -58
- package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/ComboBoxView.creevey.js.map +0 -1
- package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/package.json +0 -6
- package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.ts +0 -1
- package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/FileUploaderFile.creevey.js +0 -41
- package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/FileUploaderFile.creevey.js.map +0 -1
- package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/package.json +0 -6
- package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.ts +0 -1
- package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/HideBodyVerticalScroll.creevey.js +0 -199
- package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/HideBodyVerticalScroll.creevey.js.map +0 -1
- package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/package.json +0 -6
- package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.ts +0 -1
- package/internal/Menu/__creevey__/Menu.creevey/Menu.creevey.js +0 -196
- package/internal/Menu/__creevey__/Menu.creevey/Menu.creevey.js.map +0 -1
- package/internal/Menu/__creevey__/Menu.creevey/package.json +0 -6
- package/internal/Menu/__creevey__/Menu.creevey.d.ts +0 -1
- package/internal/PopupMenu/__creevey__/PopupMenu.creevey/PopupMenu.creevey.js +0 -69
- package/internal/PopupMenu/__creevey__/PopupMenu.creevey/PopupMenu.creevey.js.map +0 -1
- package/internal/PopupMenu/__creevey__/PopupMenu.creevey/package.json +0 -6
- package/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.ts +0 -1
- package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/ThemeProvider.creevey.js +0 -145
- package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/ThemeProvider.creevey.js.map +0 -1
- package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/package.json +0 -6
- package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.ts +0 -1
- package/internal/ZIndex/__creevey__/ZIndex.creevey/ZIndex.creevey.js +0 -550
- package/internal/ZIndex/__creevey__/ZIndex.creevey/ZIndex.creevey.js.map +0 -1
- package/internal/ZIndex/__creevey__/ZIndex.creevey/package.json +0 -6
- package/internal/ZIndex/__creevey__/ZIndex.creevey.d.ts +0 -1
- package/lib/styles/HoldSelectionColor/HoldSelectionColor.js +0 -8
- package/lib/styles/HoldSelectionColor/HoldSelectionColor.js.map +0 -1
- package/lib/styles/HoldSelectionColor/package.json +0 -6
- package/lib/styles/HoldSelectionColor.d.ts +0 -1
- /package/{cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.d.ts → components/Autocomplete/__creevey__/Autocomplete.creevey.d.mts} +0 -0
- /package/{cjs/components/Button/__creevey__/Button.creevey.d.ts → components/Button/__creevey__/Button.creevey.d.mts} +0 -0
- /package/{cjs/components/Calendar/__creevey__/Calendar.creevey.d.ts → components/Calendar/__creevey__/Calendar.creevey.d.mts} +0 -0
- /package/{cjs/components/Checkbox/__creevey__/Checkbox.creevey.d.ts → components/Checkbox/__creevey__/Checkbox.creevey.d.mts} +0 -0
- /package/{cjs/components/ComboBox/__creevey__/ComboBox.creevey.d.ts → components/ComboBox/__creevey__/ComboBox.creevey.d.mts} +0 -0
- /package/{cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.ts → components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.mts} +0 -0
- /package/{cjs/components/DateInput/__creevey__/DateInput.creevey.d.ts → components/DateInput/__creevey__/DateInput.creevey.d.mts} +0 -0
- /package/{cjs/components/DatePicker/__creevey__/DatePicker.creevey.d.ts → components/DatePicker/__creevey__/DatePicker.creevey.d.mts} +0 -0
- /package/{cjs/components/Dropdown/__creevey__/Dropdown.creevey.d.ts → components/Dropdown/__creevey__/Dropdown.creevey.d.mts} +0 -0
- /package/{cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.ts → components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.mts} +0 -0
- /package/{cjs/components/FxInput/__creevey__/FxInput.creevey.d.ts → components/FxInput/__creevey__/FxInput.creevey.d.mts} +0 -0
- /package/{cjs/components/Group/__creevey__/Group.creevey.d.ts → components/Group/__creevey__/Group.creevey.d.mts} +0 -0
- /package/{cjs/components/Hint/__creevey__/Hint.creevey.d.ts → components/Hint/__creevey__/Hint.creevey.d.mts} +0 -0
- /package/{cjs/components/Input/__creevey__/Input.creevey.d.ts → components/Input/__creevey__/Input.creevey.d.mts} +0 -0
- /package/{cjs/components/Kebab/__creevey__/Kebab.creevey.d.ts → components/Kebab/__creevey__/Kebab.creevey.d.mts} +0 -0
- /package/{cjs/components/Link/__creevey__/Link.creevey.d.ts → components/Link/__creevey__/Link.creevey.d.mts} +0 -0
- /package/{cjs/components/Loader/__creevey__/Loader.creevey.d.ts → components/Loader/__creevey__/Loader.creevey.d.mts} +0 -0
- /package/{cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.d.ts → components/MaskedInput/__creevey__/MaskedInput.creevey.d.mts} +0 -0
- /package/{cjs/components/Modal/__creevey__/Modal.creevey.d.ts → components/Modal/__creevey__/Modal.creevey.d.mts} +0 -0
- /package/{cjs/components/Paging/__creevey__/Paging.creevey.d.ts → components/Paging/__creevey__/Paging.creevey.d.mts} +0 -0
- /package/{cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.d.ts → components/PasswordInput/__creevey__/PasswordInput.creevey.d.mts} +0 -0
- /package/{cjs/components/Radio/__creevey__/Radio.creevey.d.ts → components/Radio/__creevey__/Radio.creevey.d.mts} +0 -0
- /package/{cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.d.ts → components/RadioGroup/__creevey__/RadioGroup.creevey.d.mts} +0 -0
- /package/{cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.ts → components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.mts} +0 -0
- /package/{cjs/components/Select/__creevey__/Select.creevey.d.ts → components/Select/__creevey__/Select.creevey.d.mts} +0 -0
- /package/{cjs/components/SidePage/__creevey__/SidePage.creevey.d.ts → components/SidePage/__creevey__/SidePage.creevey.d.mts} +0 -0
- /package/{cjs/components/Sticky/__creevey__/Sticky.creevey.d.ts → components/Sticky/__creevey__/Sticky.creevey.d.mts} +0 -0
- /package/{cjs/components/Switcher/__creevey__/Switcher.creevey.d.ts → components/Switcher/__creevey__/Switcher.creevey.d.mts} +0 -0
- /package/{cjs/components/Tabs/__creevey__/Tabs.creevey.d.ts → components/Tabs/__creevey__/Tabs.creevey.d.mts} +0 -0
- /package/{cjs/components/Textarea/__creevey__/Textarea.creevey.d.ts → components/Textarea/__creevey__/Textarea.creevey.d.mts} +0 -0
- /package/{cjs/components/Toast/__creevey__/Toast.creevey.d.ts → components/Toast/__creevey__/Toast.creevey.d.mts} +0 -0
- /package/{cjs/components/Toggle/__creevey__/Toggle.creevey.d.ts → components/Toggle/__creevey__/Toggle.creevey.d.mts} +0 -0
- /package/{cjs/components/TokenInput/__creevey__/TokenInput.creevey.d.ts → components/TokenInput/__creevey__/TokenInput.creevey.d.mts} +0 -0
- /package/{cjs/components/Tooltip/__creevey__/Tooltip.creevey.d.ts → components/Tooltip/__creevey__/Tooltip.creevey.d.mts} +0 -0
- /package/{cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.ts → components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.mts} +0 -0
- /package/{cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.ts → internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.mts} +0 -0
- /package/{cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.ts → internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.mts} +0 -0
- /package/{cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.ts → internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.mts} +0 -0
- /package/{cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.ts → internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.mts} +0 -0
- /package/{cjs/internal/Menu/__creevey__/Menu.creevey.d.ts → internal/Menu/__creevey__/Menu.creevey.d.mts} +0 -0
- /package/{cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.ts → internal/PopupMenu/__creevey__/PopupMenu.creevey.d.mts} +0 -0
- /package/{cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.ts → internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.mts} +0 -0
- /package/{cjs/internal/ZIndex/__creevey__/ZIndex.creevey.d.ts → internal/ZIndex/__creevey__/ZIndex.creevey.d.mts} +0 -0
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _creevey = require("creevey");
|
|
2
|
-
|
|
3
|
-
var _utils = require("../../../lib/utils");
|
|
4
|
-
|
|
5
|
-
var outOfViewTests = function outOfViewTests(side) {
|
|
6
|
-
(0, _creevey.test)('out of viewport', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) switch (_context.prev = _context.next) {case 0:if (!(
|
|
7
|
-
side === 'left')) {_context.next = 3;break;}_context.next = 3;return (
|
|
8
|
-
this.browser.executeScript(function () {
|
|
9
|
-
var container = window.document.querySelector('[data-tid="container"]');
|
|
10
|
-
container.scrollLeft = container.scrollWidth;
|
|
11
|
-
}));case 3:_context.next = 5;return (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
this.browser.
|
|
15
|
-
actions({
|
|
16
|
-
bridge: true
|
|
17
|
-
}).
|
|
18
|
-
click(this.browser.findElement({ css: '[data-tid="firstMenu"]' })).
|
|
19
|
-
perform());case 5:_context.next = 7;return (
|
|
20
|
-
(0, _utils.delay)(1000));case 7:_context.t0 =
|
|
21
|
-
|
|
22
|
-
this;_context.next = 10;return this.takeScreenshot();case 10:_context.t1 = _context.sent;_context.next = 13;return _context.t0.expect.call(_context.t0, _context.t1).to.matchImage('out of viewport');case 13:case "end":return _context.stop();}}, _callee, this);}))
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
(0, _creevey.test)('out of edge with min menu width', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {return _regenerator.default.wrap(function _callee2$(_context2) {while (1) switch (_context2.prev = _context2.next) {case 0:if (!(
|
|
26
|
-
side === 'left')) {_context2.next = 3;break;}_context2.next = 3;return (
|
|
27
|
-
this.browser.executeScript(function () {
|
|
28
|
-
var container = window.document.querySelector('[data-tid="container"]');
|
|
29
|
-
container.scrollLeft = container.scrollWidth;
|
|
30
|
-
}));case 3:_context2.next = 5;return (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.browser.
|
|
34
|
-
actions({
|
|
35
|
-
bridge: true
|
|
36
|
-
}).
|
|
37
|
-
click(this.browser.findElement({ css: '[data-tid="secondMenu"]' })).
|
|
38
|
-
perform());case 5:_context2.next = 7;return (
|
|
39
|
-
(0, _utils.delay)(1000));case 7:_context2.t0 =
|
|
40
|
-
|
|
41
|
-
this;_context2.next = 10;return this.takeScreenshot();case 10:_context2.t1 = _context2.sent;_context2.next = 13;return _context2.t0.expect.call(_context2.t0, _context2.t1).to.matchImage('out of viewport with min menu width');case 13:case "end":return _context2.stop();}}, _callee2, this);}))
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
var textAlignmentTests = function textAlignmentTests() {
|
|
46
|
-
(0, _creevey.test)('opened', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {return _regenerator.default.wrap(function _callee3$(_context3) {while (1) switch (_context3.prev = _context3.next) {case 0:_context3.next = 2;return (
|
|
47
|
-
this.browser.
|
|
48
|
-
actions({
|
|
49
|
-
bridge: true
|
|
50
|
-
}).
|
|
51
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
52
|
-
perform());case 2:_context3.next = 4;return (
|
|
53
|
-
(0, _utils.delay)(1000));case 4:_context3.t0 =
|
|
54
|
-
this;_context3.next = 7;return this.takeScreenshot();case 7:_context3.t1 = _context3.sent;_context3.next = 10;return _context3.t0.expect.call(_context3.t0, _context3.t1).to.matchImage('opened');case 10:case "end":return _context3.stop();}}, _callee3, this);}))
|
|
55
|
-
);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
var navigateInNestedMenuItems = function navigateInNestedMenuItems() {
|
|
59
|
-
(0, _creevey.test)('navigate', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {var arrowDown, enter;return _regenerator.default.wrap(function _callee4$(_context4) {while (1) switch (_context4.prev = _context4.next) {case 0:_context4.next = 2;return (
|
|
60
|
-
this.browser.
|
|
61
|
-
actions({
|
|
62
|
-
bridge: true
|
|
63
|
-
}).
|
|
64
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
65
|
-
sendKeys(this.keys.DOWN).
|
|
66
|
-
sendKeys(this.keys.DOWN).
|
|
67
|
-
perform());case 2:_context4.next = 4;return (
|
|
68
|
-
this.browser.takeScreenshot());case 4:arrowDown = _context4.sent;_context4.next = 7;return (
|
|
69
|
-
this.browser.
|
|
70
|
-
actions({
|
|
71
|
-
bridge: true
|
|
72
|
-
}).
|
|
73
|
-
sendKeys(this.keys.ENTER).
|
|
74
|
-
perform());case 7:_context4.next = 9;return (
|
|
75
|
-
(0, _utils.delay)(1000));case 9:_context4.next = 11;return (
|
|
76
|
-
this.browser.takeScreenshot());case 11:enter = _context4.sent;_context4.next = 14;return (
|
|
77
|
-
this.expect({ arrowDown: arrowDown, enter: enter }).to.matchImages());case 14:case "end":return _context4.stop();}}, _callee4, this);}))
|
|
78
|
-
);
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
(0, _creevey.kind)('DropdownMenu', function () {
|
|
82
|
-
(0, _creevey.story)('SimpleExample', function () {
|
|
83
|
-
(0, _creevey.test)('plain', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {return _regenerator.default.wrap(function _callee5$(_context5) {while (1) switch (_context5.prev = _context5.next) {case 0:_context5.next = 2;return (
|
|
84
|
-
(0, _utils.delay)(1000));case 2:_context5.t0 =
|
|
85
|
-
this;_context5.next = 5;return this.takeScreenshot();case 5:_context5.t1 = _context5.sent;_context5.next = 8;return _context5.t0.expect.call(_context5.t0, _context5.t1).to.matchImage('plain');case 8:case "end":return _context5.stop();}}, _callee5, this);}))
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
(0, _creevey.test)('clickAfterClickedOnCaption', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {return _regenerator.default.wrap(function _callee6$(_context6) {while (1) switch (_context6.prev = _context6.next) {case 0:_context6.next = 2;return (
|
|
89
|
-
this.browser.
|
|
90
|
-
actions({
|
|
91
|
-
bridge: true
|
|
92
|
-
}).
|
|
93
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
94
|
-
perform());case 2:_context6.next = 4;return (
|
|
95
|
-
this.browser.
|
|
96
|
-
actions({
|
|
97
|
-
bridge: true
|
|
98
|
-
}).
|
|
99
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
100
|
-
perform());case 4:_context6.next = 6;return (
|
|
101
|
-
(0, _utils.delay)(1000));case 6:_context6.t0 =
|
|
102
|
-
this;_context6.next = 9;return this.takeScreenshot();case 9:_context6.t1 = _context6.sent;_context6.next = 12;return _context6.t0.expect.call(_context6.t0, _context6.t1).to.matchImage('clickAfterClickedOnCaption');case 12:case "end":return _context6.stop();}}, _callee6, this);}))
|
|
103
|
-
);
|
|
104
|
-
|
|
105
|
-
(0, _creevey.test)('clicked', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {return _regenerator.default.wrap(function _callee7$(_context7) {while (1) switch (_context7.prev = _context7.next) {case 0:_context7.next = 2;return (
|
|
106
|
-
this.browser.
|
|
107
|
-
actions({
|
|
108
|
-
bridge: true
|
|
109
|
-
}).
|
|
110
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
111
|
-
perform());case 2:_context7.next = 4;return (
|
|
112
|
-
(0, _utils.delay)(1000));case 4:_context7.t0 =
|
|
113
|
-
this;_context7.next = 7;return this.takeScreenshot();case 7:_context7.t1 = _context7.sent;_context7.next = 10;return _context7.t0.expect.call(_context7.t0, _context7.t1).to.matchImage('clicked');case 10:case "end":return _context7.stop();}}, _callee7, this);}))
|
|
114
|
-
);
|
|
115
|
-
|
|
116
|
-
(0, _creevey.test)('tabPress', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() {return _regenerator.default.wrap(function _callee8$(_context8) {while (1) switch (_context8.prev = _context8.next) {case 0:_context8.next = 2;return (
|
|
117
|
-
this.browser.
|
|
118
|
-
actions({
|
|
119
|
-
bridge: true
|
|
120
|
-
}).
|
|
121
|
-
sendKeys(this.keys.TAB).
|
|
122
|
-
perform());case 2:_context8.next = 4;return (
|
|
123
|
-
(0, _utils.delay)(1000));case 4:_context8.t0 =
|
|
124
|
-
this;_context8.next = 7;return this.takeScreenshot();case 7:_context8.t1 = _context8.sent;_context8.next = 10;return _context8.t0.expect.call(_context8.t0, _context8.t1).to.matchImage('tabPress');case 10:case "end":return _context8.stop();}}, _callee8, this);}))
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
(0, _creevey.test)('enterPress', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() {return _regenerator.default.wrap(function _callee9$(_context9) {while (1) switch (_context9.prev = _context9.next) {case 0:_context9.next = 2;return (
|
|
128
|
-
this.browser.
|
|
129
|
-
actions({
|
|
130
|
-
bridge: true
|
|
131
|
-
}).
|
|
132
|
-
sendKeys(this.keys.TAB).
|
|
133
|
-
perform());case 2:_context9.next = 4;return (
|
|
134
|
-
this.browser.
|
|
135
|
-
actions({
|
|
136
|
-
bridge: true
|
|
137
|
-
}).
|
|
138
|
-
sendKeys(this.keys.ENTER).
|
|
139
|
-
perform());case 4:_context9.next = 6;return (
|
|
140
|
-
(0, _utils.delay)(1000));case 6:_context9.t0 =
|
|
141
|
-
this;_context9.next = 9;return this.takeScreenshot();case 9:_context9.t1 = _context9.sent;_context9.next = 12;return _context9.t0.expect.call(_context9.t0, _context9.t1).to.matchImage('enterPress');case 12:case "end":return _context9.stop();}}, _callee9, this);}))
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
(0, _creevey.test)('escapePress', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() {return _regenerator.default.wrap(function _callee10$(_context10) {while (1) switch (_context10.prev = _context10.next) {case 0:_context10.next = 2;return (
|
|
145
|
-
this.browser.
|
|
146
|
-
actions({
|
|
147
|
-
bridge: true
|
|
148
|
-
}).
|
|
149
|
-
sendKeys(this.keys.TAB).
|
|
150
|
-
perform());case 2:_context10.next = 4;return (
|
|
151
|
-
this.browser.
|
|
152
|
-
actions({
|
|
153
|
-
bridge: true
|
|
154
|
-
}).
|
|
155
|
-
sendKeys(this.keys.ENTER).
|
|
156
|
-
perform());case 4:_context10.next = 6;return (
|
|
157
|
-
this.browser.
|
|
158
|
-
actions({
|
|
159
|
-
bridge: true
|
|
160
|
-
}).
|
|
161
|
-
sendKeys(this.keys.ESCAPE).
|
|
162
|
-
perform());case 6:_context10.next = 8;return (
|
|
163
|
-
(0, _utils.delay)(1000));case 8:_context10.t0 =
|
|
164
|
-
this;_context10.next = 11;return this.takeScreenshot();case 11:_context10.t1 = _context10.sent;_context10.next = 14;return _context10.t0.expect.call(_context10.t0, _context10.t1).to.matchImage('escapePress');case 14:case "end":return _context10.stop();}}, _callee10, this);}))
|
|
165
|
-
);
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
(0, _creevey.story)('CaptionWidth', function () {
|
|
169
|
-
(0, _creevey.test)('plain', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() {return _regenerator.default.wrap(function _callee11$(_context11) {while (1) switch (_context11.prev = _context11.next) {case 0:_context11.next = 2;return (
|
|
170
|
-
(0, _utils.delay)(1000));case 2:_context11.t0 =
|
|
171
|
-
this;_context11.next = 5;return this.takeScreenshot();case 5:_context11.t1 = _context11.sent;_context11.next = 8;return _context11.t0.expect.call(_context11.t0, _context11.t1).to.matchImage('plain');case 8:case "end":return _context11.stop();}}, _callee11, this);}))
|
|
172
|
-
);
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
(0, _creevey.story)('WithHeaderAndFooter', function () {
|
|
176
|
-
(0, _creevey.test)('clicked', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() {return _regenerator.default.wrap(function _callee12$(_context12) {while (1) switch (_context12.prev = _context12.next) {case 0:_context12.next = 2;return (
|
|
177
|
-
this.browser.
|
|
178
|
-
actions({
|
|
179
|
-
bridge: true
|
|
180
|
-
}).
|
|
181
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
182
|
-
perform());case 2:_context12.next = 4;return (
|
|
183
|
-
(0, _utils.delay)(1000));case 4:_context12.t0 =
|
|
184
|
-
this;_context12.next = 7;return this.browser.takeScreenshot();case 7:_context12.t1 = _context12.sent;_context12.next = 10;return _context12.t0.expect.call(_context12.t0, _context12.t1).to.matchImage('clicked');case 10:case "end":return _context12.stop();}}, _callee12, this);}))
|
|
185
|
-
);
|
|
186
|
-
|
|
187
|
-
(0, _creevey.test)('scrolled by 100', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13() {return _regenerator.default.wrap(function _callee13$(_context13) {while (1) switch (_context13.prev = _context13.next) {case 0:_context13.next = 2;return (
|
|
188
|
-
this.browser.
|
|
189
|
-
actions({
|
|
190
|
-
bridge: true
|
|
191
|
-
}).
|
|
192
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
193
|
-
perform());case 2:_context13.next = 4;return (
|
|
194
|
-
this.browser.executeScript(function () {
|
|
195
|
-
var scrollContainer = window.document.querySelector('[data-tid~="ScrollContainer__inner"]');
|
|
196
|
-
scrollContainer.scrollTop += 100;
|
|
197
|
-
}));case 4:_context13.next = 6;return (
|
|
198
|
-
(0, _utils.delay)(2000));case 6:_context13.t0 =
|
|
199
|
-
this;_context13.next = 9;return this.browser.takeScreenshot();case 9:_context13.t1 = _context13.sent;_context13.next = 12;return _context13.t0.expect.call(_context13.t0, _context13.t1).to.matchImage('scrolled by 100');case 12:case "end":return _context13.stop();}}, _callee13, this);}))
|
|
200
|
-
);
|
|
201
|
-
|
|
202
|
-
(0, _creevey.test)('scrolled down to bottom', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() {return _regenerator.default.wrap(function _callee14$(_context14) {while (1) switch (_context14.prev = _context14.next) {case 0:_context14.next = 2;return (
|
|
203
|
-
this.browser.
|
|
204
|
-
actions({
|
|
205
|
-
bridge: true
|
|
206
|
-
}).
|
|
207
|
-
click(this.browser.findElement({ css: '[data-tid~="PopupMenu__caption"]' })).
|
|
208
|
-
perform());case 2:_context14.next = 4;return (
|
|
209
|
-
this.browser.executeScript(function () {
|
|
210
|
-
var scrollContainer = window.document.querySelector('[data-tid~="ScrollContainer__inner"]');
|
|
211
|
-
scrollContainer.scrollTop += scrollContainer.scrollHeight;
|
|
212
|
-
}));case 4:_context14.next = 6;return (
|
|
213
|
-
(0, _utils.delay)(1000));case 6:_context14.t0 =
|
|
214
|
-
this;_context14.next = 9;return this.browser.takeScreenshot();case 9:_context14.t1 = _context14.sent;_context14.next = 12;return _context14.t0.expect.call(_context14.t0, _context14.t1).to.matchImage('scrolled down to bottom');case 12:case "end":return _context14.stop();}}, _callee14, this);}))
|
|
215
|
-
);
|
|
216
|
-
});
|
|
217
|
-
|
|
218
|
-
(0, _creevey.story)('MobileExampleWithHorizontalPadding', function (_ref15) {var setStoryParameters = _ref15.setStoryParameters;
|
|
219
|
-
setStoryParameters({ captureElement: null });
|
|
220
|
-
|
|
221
|
-
(0, _creevey.test)('opened', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee15() {return _regenerator.default.wrap(function _callee15$(_context15) {while (1) switch (_context15.prev = _context15.next) {case 0:_context15.next = 2;return (
|
|
222
|
-
this.browser.
|
|
223
|
-
actions({ bridge: true }).
|
|
224
|
-
click(this.browser.findElement({ css: '[data-comp-name~="DropdownMenu"]' })).
|
|
225
|
-
perform());case 2:_context15.next = 4;return (
|
|
226
|
-
(0, _utils.delay)(200));case 4:_context15.next = 6;return (
|
|
227
|
-
this.browser.
|
|
228
|
-
actions({ bridge: true }).
|
|
229
|
-
move({ origin: this.browser.findElement({ css: '[data-comp-name~="MenuItem"]' }) }).
|
|
230
|
-
perform());case 6:_context15.next = 8;return (
|
|
231
|
-
(0, _utils.delay)(1000));case 8:_context15.t0 =
|
|
232
|
-
this;_context15.next = 11;return this.takeScreenshot();case 11:_context15.t1 = _context15.sent;_context15.next = 14;return _context15.t0.expect.call(_context15.t0, _context15.t1).to.matchImage('opened');case 14:case "end":return _context15.stop();}}, _callee15, this);}))
|
|
233
|
-
);
|
|
234
|
-
});
|
|
235
|
-
(0, _creevey.story)('MenuOutOfViewPortRight', function (_ref17) {var setStoryParameters = _ref17.setStoryParameters;
|
|
236
|
-
setStoryParameters({
|
|
237
|
-
skip: { flacky: { in: ['firefox2022', 'firefox2022Dark'] } }
|
|
238
|
-
});
|
|
239
|
-
outOfViewTests('right');
|
|
240
|
-
});
|
|
241
|
-
(0, _creevey.story)('MenuOutOfViewPortLeft', function () {
|
|
242
|
-
outOfViewTests('left');
|
|
243
|
-
});
|
|
244
|
-
|
|
245
|
-
(0, _creevey.story)('WithItemsAndIcons', function (_ref18) {var setStoryParameters = _ref18.setStoryParameters;
|
|
246
|
-
setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\bchrome2022\b)/ } } });
|
|
247
|
-
|
|
248
|
-
textAlignmentTests();
|
|
249
|
-
});
|
|
250
|
-
|
|
251
|
-
(0, _creevey.story)('WithItemsAndIconsWithoutTextAlignment', function (_ref19) {var setStoryParameters = _ref19.setStoryParameters;
|
|
252
|
-
setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\bchrome2022\b)/ } } });
|
|
253
|
-
|
|
254
|
-
textAlignmentTests();
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
(0, _creevey.story)('WithNestedMenuItems', function (_ref20) {var setStoryParameters = _ref20.setStoryParameters;
|
|
258
|
-
setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\bchrome2022\b)/ } } });
|
|
259
|
-
|
|
260
|
-
navigateInNestedMenuItems();
|
|
261
|
-
});
|
|
262
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_creevey","require","_utils","outOfViewTests","side","test","_asyncToGenerator2","default","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","browser","executeScript","container","window","document","querySelector","scrollLeft","scrollWidth","actions","bridge","click","findElement","css","perform","delay","t0","takeScreenshot","t1","sent","expect","call","to","matchImage","stop","_callee2","_callee2$","_context2","textAlignmentTests","_callee3","_callee3$","_context3","navigateInNestedMenuItems","_callee4","arrowDown","enter","_callee4$","_context4","sendKeys","keys","DOWN","ENTER","matchImages","kind","story","_callee5","_callee5$","_context5","_callee6","_callee6$","_context6","_callee7","_callee7$","_context7","_callee8","_callee8$","_context8","TAB","_callee9","_callee9$","_context9","_callee10","_callee10$","_context10","ESCAPE","_callee11","_callee11$","_context11","_callee12","_callee12$","_context12","_callee13","_callee13$","_context13","scrollContainer","scrollTop","_callee14","_callee14$","_context14","scrollHeight","_ref15","setStoryParameters","captureElement","_callee15","_callee15$","_context15","move","origin","_ref17","skip","flacky","in","_ref18","_ref19","_ref20"],"sources":["DropdownMenu.creevey.ts"],"sourcesContent":["import { story, kind, test } from 'creevey';\n\nimport { delay } from '../../../lib/utils';\n\nconst outOfViewTests = (side: 'left' | 'right') => {\n test('out of viewport', async function () {\n if (side === 'left') {\n await this.browser.executeScript(function () {\n const container = window.document.querySelector('[data-tid=\"container\"]') as HTMLElement;\n container.scrollLeft = container.scrollWidth;\n });\n }\n\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid=\"firstMenu\"]' }))\n .perform();\n await delay(1000);\n\n await this.expect(await this.takeScreenshot()).to.matchImage('out of viewport');\n });\n\n test('out of edge with min menu width', async function () {\n if (side === 'left') {\n await this.browser.executeScript(function () {\n const container = window.document.querySelector('[data-tid=\"container\"]') as HTMLElement;\n container.scrollLeft = container.scrollWidth;\n });\n }\n\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid=\"secondMenu\"]' }))\n .perform();\n await delay(1000);\n\n await this.expect(await this.takeScreenshot()).to.matchImage('out of viewport with min menu width');\n });\n};\n\nconst textAlignmentTests = () => {\n test('opened', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .perform();\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('opened');\n });\n};\n\nconst navigateInNestedMenuItems = () => {\n test('navigate', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .sendKeys(this.keys.DOWN)\n .sendKeys(this.keys.DOWN)\n .perform();\n const arrowDown = await this.browser.takeScreenshot();\n await this.browser\n .actions({\n bridge: true,\n })\n .sendKeys(this.keys.ENTER)\n .perform();\n await delay(1000);\n const enter = await this.browser.takeScreenshot();\n await this.expect({ arrowDown, enter }).to.matchImages();\n });\n};\n\nkind('DropdownMenu', () => {\n story('SimpleExample', () => {\n test('plain', async function () {\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('plain');\n });\n\n test('clickAfterClickedOnCaption', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .perform();\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .perform();\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('clickAfterClickedOnCaption');\n });\n\n test('clicked', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .perform();\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('clicked');\n });\n\n test('tabPress', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .sendKeys(this.keys.TAB)\n .perform();\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('tabPress');\n });\n\n test('enterPress', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .sendKeys(this.keys.TAB)\n .perform();\n await this.browser\n .actions({\n bridge: true,\n })\n .sendKeys(this.keys.ENTER)\n .perform();\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('enterPress');\n });\n\n test('escapePress', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .sendKeys(this.keys.TAB)\n .perform();\n await this.browser\n .actions({\n bridge: true,\n })\n .sendKeys(this.keys.ENTER)\n .perform();\n await this.browser\n .actions({\n bridge: true,\n })\n .sendKeys(this.keys.ESCAPE)\n .perform();\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('escapePress');\n });\n });\n\n story('CaptionWidth', () => {\n test('plain', async function () {\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('plain');\n });\n });\n\n story('WithHeaderAndFooter', () => {\n test('clicked', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .perform();\n await delay(1000);\n await this.expect(await this.browser.takeScreenshot()).to.matchImage('clicked');\n });\n\n test('scrolled by 100', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .perform();\n await this.browser.executeScript(function () {\n const scrollContainer = window.document.querySelector('[data-tid~=\"ScrollContainer__inner\"]') as HTMLElement;\n scrollContainer.scrollTop += 100;\n });\n await delay(2000);\n await this.expect(await this.browser.takeScreenshot()).to.matchImage('scrolled by 100');\n });\n\n test('scrolled down to bottom', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '[data-tid~=\"PopupMenu__caption\"]' }))\n .perform();\n await this.browser.executeScript(function () {\n const scrollContainer = window.document.querySelector('[data-tid~=\"ScrollContainer__inner\"]') as HTMLElement;\n scrollContainer.scrollTop += scrollContainer.scrollHeight;\n });\n await delay(1000);\n await this.expect(await this.browser.takeScreenshot()).to.matchImage('scrolled down to bottom');\n });\n });\n\n story('MobileExampleWithHorizontalPadding', ({ setStoryParameters }) => {\n setStoryParameters({ captureElement: null });\n\n test('opened', async function () {\n await this.browser\n .actions({ bridge: true })\n .click(this.browser.findElement({ css: '[data-comp-name~=\"DropdownMenu\"]' }))\n .perform();\n await delay(200);\n await this.browser\n .actions({ bridge: true })\n .move({ origin: this.browser.findElement({ css: '[data-comp-name~=\"MenuItem\"]' }) })\n .perform();\n await delay(1000);\n await this.expect(await this.takeScreenshot()).to.matchImage('opened');\n });\n });\n story('MenuOutOfViewPortRight', ({ setStoryParameters }) => {\n setStoryParameters({\n skip: { flacky: { in: ['firefox2022', 'firefox2022Dark'] } },\n });\n outOfViewTests('right');\n });\n story('MenuOutOfViewPortLeft', () => {\n outOfViewTests('left');\n });\n\n story('WithItemsAndIcons', ({ setStoryParameters }) => {\n setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\\bchrome2022\\b)/ } } });\n\n textAlignmentTests();\n });\n\n story('WithItemsAndIconsWithoutTextAlignment', ({ setStoryParameters }) => {\n setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\\bchrome2022\\b)/ } } });\n\n textAlignmentTests();\n });\n\n story('WithNestedMenuItems', ({ setStoryParameters }) => {\n setStoryParameters({ skip: { 'themes dont affect logic': { in: /^(?!\\bchrome2022\\b)/ } } });\n\n navigateInNestedMenuItems();\n });\n});\n"],"mappings":"+RAAA,IAAAA,QAAA,GAAAC,OAAA;;AAEA,IAAAC,MAAA,GAAAD,OAAA;;AAEA,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,IAAsB,EAAK;EACjD,IAAAC,aAAI,EAAC,iBAAiB,mBAAAC,kBAAA,CAAAC,OAAA,gBAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAA,UAAAF,YAAA,CAAAD,OAAA,CAAAI,IAAA,UAAAC,SAAAC,QAAA,qBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,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CAAC,CAAC,CAAC;;IAE3F/D,kBAAkB,CAAC,CAAC;EACtB,CAAC,CAAC;;EAEF,IAAAgB,cAAK,EAAC,uCAAuC,EAAE,UAAAiD,MAAA,EAA4B,KAAzBZ,kBAAkB,GAAAY,MAAA,CAAlBZ,kBAAkB;IAClEA,kBAAkB,CAAC,EAAEQ,IAAI,EAAE,EAAE,0BAA0B,EAAE,EAAEE,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;IAE3F/D,kBAAkB,CAAC,CAAC;EACtB,CAAC,CAAC;;EAEF,IAAAgB,cAAK,EAAC,qBAAqB,EAAE,UAAAkD,MAAA,EAA4B,KAAzBb,kBAAkB,GAAAa,MAAA,CAAlBb,kBAAkB;IAChDA,kBAAkB,CAAC,EAAEQ,IAAI,EAAE,EAAE,0BAA0B,EAAE,EAAEE,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;IAE3F3D,yBAAyB,CAAC,CAAC;EAC7B,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _creevey = require("creevey");
|
|
2
|
-
|
|
3
|
-
(0, _creevey.kind)('FxInput', function () {
|
|
4
|
-
(0, _creevey.story)('WithWidthStory', function () {
|
|
5
|
-
(0, _creevey.test)('inside auto container', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {var element;return _regenerator.default.wrap(function _callee$(_context) {while (1) switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
|
|
6
|
-
this.browser.findElement({ css: '[data-tid="container"]' }));case 2:element = _context.sent;_context.t0 =
|
|
7
|
-
this;_context.next = 6;return element.takeScreenshot();case 6:_context.t1 = _context.sent;_context.next = 9;return _context.t0.expect.call(_context.t0, _context.t1).to.matchImage('inside auto container');case 9:case "end":return _context.stop();}}, _callee, this);}))
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
(0, _creevey.test)('inside fixed container', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {var element;return _regenerator.default.wrap(function _callee2$(_context2) {while (1) switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return (
|
|
11
|
-
this.browser.findElement({ css: '[data-tid="container"]' }));case 2:element = _context2.sent;_context2.next = 5;return (
|
|
12
|
-
this.browser.
|
|
13
|
-
actions({
|
|
14
|
-
bridge: true
|
|
15
|
-
}).
|
|
16
|
-
click(this.browser.findElement({ css: '#toggle-width' })).
|
|
17
|
-
perform());case 5:_context2.t0 =
|
|
18
|
-
this;_context2.next = 8;return element.takeScreenshot();case 8:_context2.t1 = _context2.sent;_context2.next = 11;return _context2.t0.expect.call(_context2.t0, _context2.t1).to.matchImage('inside fixed container');case 11:case "end":return _context2.stop();}}, _callee2, this);}))
|
|
19
|
-
);
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_creevey","require","kind","story","test","_asyncToGenerator2","default","_regenerator","mark","_callee","element","wrap","_callee$","_context","prev","next","browser","findElement","css","sent","t0","takeScreenshot","t1","expect","call","to","matchImage","stop","_callee2","_callee2$","_context2","actions","bridge","click","perform"],"sources":["FxInput.creevey.ts"],"sourcesContent":["import { story, kind, test } from 'creevey';\n\nkind('FxInput', () => {\n story('WithWidthStory', () => {\n test('inside auto container', async function () {\n const element = await this.browser.findElement({ css: '[data-tid=\"container\"]' });\n await this.expect(await element.takeScreenshot()).to.matchImage('inside auto container');\n });\n\n test('inside fixed container', async function () {\n const element = await this.browser.findElement({ css: '[data-tid=\"container\"]' });\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: '#toggle-width' }))\n .perform();\n await this.expect(await element.takeScreenshot()).to.matchImage('inside fixed container');\n });\n });\n});\n"],"mappings":"+RAAA,IAAAA,QAAA,GAAAC,OAAA;;AAEA,IAAAC,aAAI,EAAC,SAAS,EAAE,YAAM;EACpB,IAAAC,cAAK,EAAC,gBAAgB,EAAE,YAAM;IAC5B,IAAAC,aAAI,EAAC,uBAAuB,mBAAAC,kBAAA,CAAAC,OAAA,gBAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAC,QAAA,OAAAC,OAAA,QAAAH,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAC,SAAAC,QAAA,qBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA,UAAAF,QAAA,CAAAE,IAAA;cACN,IAAI,CAACC,OAAO,CAACC,WAAW,CAAC,EAAEC,GAAG,EAAE,wBAAwB,CAAC,CAAC,CAAC,SAA3ER,OAAO,GAAAG,QAAA,CAAAM,IAAA,CAAAN,QAAA,CAAAO,EAAA;YACP,IAAI,CAAAP,QAAA,CAAAE,IAAA,YAAcL,OAAO,CAACW,cAAc,CAAC,CAAC,QAAAR,QAAA,CAAAS,EAAA,GAAAT,QAAA,CAAAM,IAAA,CAAAN,QAAA,CAAAE,IAAA,YAAAF,QAAA,CAAAO,EAAA,CAArCG,MAAM,CAAAC,IAAA,CAAAX,QAAA,CAAAO,EAAA,EAAAP,QAAA,CAAAS,EAAA,EAAiCG,EAAE,CAACC,UAAU,CAAC,uBAAuB,2BAAAb,QAAA,CAAAc,IAAA,OAAAlB,OAAA,SACxF;IAAA,CAAC;;IAEF,IAAAL,aAAI,EAAC,wBAAwB,mBAAAC,kBAAA,CAAAC,OAAA,gBAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CAAE,SAAAoB,SAAA,OAAAlB,OAAA,QAAAH,YAAA,CAAAD,OAAA,CAAAK,IAAA,UAAAkB,UAAAC,SAAA,qBAAAA,SAAA,CAAAhB,IAAA,GAAAgB,SAAA,CAAAf,IAAA,UAAAe,SAAA,CAAAf,IAAA;cACP,IAAI,CAACC,OAAO,CAACC,WAAW,CAAC,EAAEC,GAAG,EAAE,wBAAwB,CAAC,CAAC,CAAC,SAA3ER,OAAO,GAAAoB,SAAA,CAAAX,IAAA,CAAAW,SAAA,CAAAf,IAAA;cACP,IAAI,CAACC,OAAO;cACfe,OAAO,CAAC;gBACPC,MAAM,EAAE;cACV,CAAC,CAAC;cACDC,KAAK,CAAC,IAAI,CAACjB,OAAO,CAACC,WAAW,CAAC,EAAEC,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;cACzDgB,OAAO,CAAC,CAAC,SAAAJ,SAAA,CAAAV,EAAA;YACN,IAAI,CAAAU,SAAA,CAAAf,IAAA,YAAcL,OAAO,CAACW,cAAc,CAAC,CAAC,QAAAS,SAAA,CAAAR,EAAA,GAAAQ,SAAA,CAAAX,IAAA,CAAAW,SAAA,CAAAf,IAAA,aAAAe,SAAA,CAAAV,EAAA,CAArCG,MAAM,CAAAC,IAAA,CAAAM,SAAA,CAAAV,EAAA,EAAAU,SAAA,CAAAR,EAAA,EAAiCG,EAAE,CAACC,UAAU,CAAC,wBAAwB,4BAAAI,SAAA,CAAAH,IAAA,OAAAC,QAAA,SACzF;IAAA,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _creevey = require("creevey");
|
|
2
|
-
|
|
3
|
-
(0, _creevey.kind)('Group', function () {
|
|
4
|
-
(0, _creevey.story)('SimpleGroupWithInputAndButton', function () {
|
|
5
|
-
(0, _creevey.test)('plain', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) switch (_context.prev = _context.next) {case 0:_context.t0 =
|
|
6
|
-
this;_context.next = 3;return this.takeScreenshot();case 3:_context.t1 = _context.sent;_context.next = 6;return _context.t0.expect.call(_context.t0, _context.t1).to.matchImage('plain');case 6:case "end":return _context.stop();}}, _callee, this);}))
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
(0, _creevey.test)('focused input', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {return _regenerator.default.wrap(function _callee2$(_context2) {while (1) switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return (
|
|
10
|
-
this.browser.
|
|
11
|
-
actions({
|
|
12
|
-
bridge: true
|
|
13
|
-
}).
|
|
14
|
-
click(this.browser.findElement({ css: 'input' })).
|
|
15
|
-
perform());case 2:_context2.t0 =
|
|
16
|
-
this;_context2.next = 5;return this.takeScreenshot();case 5:_context2.t1 = _context2.sent;_context2.next = 8;return _context2.t0.expect.call(_context2.t0, _context2.t1).to.matchImage('focused input');case 8:case "end":return _context2.stop();}}, _callee2, this);}))
|
|
17
|
-
);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_creevey","require","kind","story","test","_asyncToGenerator2","default","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","t0","takeScreenshot","t1","sent","expect","call","to","matchImage","stop","_callee2","_callee2$","_context2","browser","actions","bridge","click","findElement","css","perform"],"sources":["Group.creevey.ts"],"sourcesContent":["import { story, kind, test } from 'creevey';\n\nkind('Group', () => {\n story('SimpleGroupWithInputAndButton', () => {\n test('plain', async function () {\n await this.expect(await this.takeScreenshot()).to.matchImage('plain');\n });\n\n test('focused input', async function () {\n await this.browser\n .actions({\n bridge: true,\n })\n .click(this.browser.findElement({ css: 'input' }))\n .perform();\n await this.expect(await this.takeScreenshot()).to.matchImage('focused input');\n });\n });\n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AAAP,SAAA,CAAAX,EAAA;YACN,IAAI,CAAAW,SAAA,CAAAZ,IAAA,YAAc,IAAI,CAACE,cAAc,CAAC,CAAC,QAAAU,SAAA,CAAAT,EAAA,GAAAS,SAAA,CAAAR,IAAA,CAAAQ,SAAA,CAAAZ,IAAA,YAAAY,SAAA,CAAAX,EAAA,CAAlCI,MAAM,CAAAC,IAAA,CAAAM,SAAA,CAAAX,EAAA,EAAAW,SAAA,CAAAT,EAAA,EAA8BI,EAAE,CAACC,UAAU,CAAC,eAAe,2BAAAI,SAAA,CAAAH,IAAA,OAAAC,QAAA,SAC7E;IAAA,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _creevey = require("creevey");
|
|
2
|
-
|
|
3
|
-
var _utils = require("../../../lib/utils");
|
|
4
|
-
|
|
5
|
-
(0, _creevey.kind)('Hint', function () {
|
|
6
|
-
(0, _creevey.story)('SetManualAndOpenedPropOnClick', function () {
|
|
7
|
-
(0, _creevey.test)('click on hint', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {return _regenerator.default.wrap(function _callee$(_context) {while (1) switch (_context.prev = _context.next) {case 0:_context.next = 2;return (
|
|
8
|
-
this.browser.
|
|
9
|
-
actions().
|
|
10
|
-
click(this.browser.findElement({ css: '#main' })).
|
|
11
|
-
perform());case 2:_context.next = 4;return (
|
|
12
|
-
(0, _utils.delay)(1000));case 4:_context.t0 =
|
|
13
|
-
this;_context.next = 7;return this.browser.takeScreenshot();case 7:_context.t1 = _context.sent;_context.next = 10;return _context.t0.expect.call(_context.t0, _context.t1).to.matchImage('click on hint');case 10:case "end":return _context.stop();}}, _callee, this);}))
|
|
14
|
-
);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
(0, _creevey.story)('WithSVGIcon', function (_ref2) {var setStoryParameters = _ref2.setStoryParameters;
|
|
18
|
-
setStoryParameters({
|
|
19
|
-
skip: {
|
|
20
|
-
'internal logic being tested and not something UI related': {
|
|
21
|
-
in: [
|
|
22
|
-
'chromeDark',
|
|
23
|
-
'chrome8px',
|
|
24
|
-
'firefox8px',
|
|
25
|
-
'firefox',
|
|
26
|
-
'firefoxFlat8px',
|
|
27
|
-
'firefoxDark',
|
|
28
|
-
'ie118px',
|
|
29
|
-
'ie11',
|
|
30
|
-
'ie11Dark']
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
(0, _creevey.test)('idle', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {return _regenerator.default.wrap(function _callee2$(_context2) {while (1) switch (_context2.prev = _context2.next) {case 0:_context2.t0 =
|
|
37
|
-
this;_context2.next = 3;return this.takeScreenshot();case 3:_context2.t1 = _context2.sent;_context2.next = 6;return _context2.t0.expect.call(_context2.t0, _context2.t1).to.matchImage('idle');case 6:case "end":return _context2.stop();}}, _callee2, this);}))
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
(0, _creevey.test)('hover', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {return _regenerator.default.wrap(function _callee3$(_context3) {while (1) switch (_context3.prev = _context3.next) {case 0:_context3.next = 2;return (
|
|
41
|
-
this.browser.
|
|
42
|
-
actions().
|
|
43
|
-
move({
|
|
44
|
-
origin: this.browser.findElement({ css: '[data-tid="icon"]' })
|
|
45
|
-
}).
|
|
46
|
-
perform());case 2:_context3.next = 4;return (
|
|
47
|
-
(0, _utils.delay)(1000));case 4:_context3.t0 =
|
|
48
|
-
this;_context3.next = 7;return this.browser.takeScreenshot();case 7:_context3.t1 = _context3.sent;_context3.next = 10;return _context3.t0.expect.call(_context3.t0, _context3.t1).to.matchImage('open');case 10:case "end":return _context3.stop();}}, _callee3, this);}))
|
|
49
|
-
);
|
|
50
|
-
});
|
|
51
|
-
(0, _creevey.story)('top bottom center', function (_ref5) {var setStoryParameters = _ref5.setStoryParameters;
|
|
52
|
-
setStoryParameters({
|
|
53
|
-
skip: { "themes don't affect logic": { in: /^(?!\bchrome2022\b)/ } }
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
(0, _creevey.story)('HintNearScreenEdge', function (_ref6) {var setStoryParameters = _ref6.setStoryParameters;
|
|
57
|
-
setStoryParameters({
|
|
58
|
-
captureElement: 'body',
|
|
59
|
-
skip: { 'no themes': { in: /^(?!\b(chrome2022|firefox2022)\b)/ } }
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
(0, _creevey.story)('HintWithoutPortal', function () {
|
|
64
|
-
(0, _creevey.test)('opened', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {return _regenerator.default.wrap(function _callee4$(_context4) {while (1) switch (_context4.prev = _context4.next) {case 0:_context4.t0 =
|
|
65
|
-
this;_context4.next = 3;return this.browser.takeScreenshot();case 3:_context4.t1 = _context4.sent;_context4.next = 6;return _context4.t0.expect.call(_context4.t0, _context4.t1).to.matchImage('open');case 6:case "end":return _context4.stop();}}, _callee4, this);}))
|
|
66
|
-
);
|
|
67
|
-
});
|
|
68
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_creevey","require","_utils","kind","story","test","_asyncToGenerator2","default","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","browser","actions","click","findElement","css","perform","delay","t0","takeScreenshot","t1","sent","expect","call","to","matchImage","stop","_ref2","setStoryParameters","skip","in","_callee2","_callee2$","_context2","_callee3","_callee3$","_context3","move","origin","_ref5","_ref6","captureElement","_callee4","_callee4$","_context4"],"sources":["Hint.creevey.ts"],"sourcesContent":["import { story, kind, test } from 'creevey';\n\nimport { delay } from '../../../lib/utils';\n\nkind('Hint', () => {\n story('SetManualAndOpenedPropOnClick', () => {\n test('click on hint', async function () {\n await this.browser\n .actions()\n .click(this.browser.findElement({ css: '#main' }))\n .perform();\n await delay(1000);\n await this.expect(await this.browser.takeScreenshot()).to.matchImage('click on hint');\n });\n });\n\n story('WithSVGIcon', ({ setStoryParameters }) => {\n setStoryParameters({\n skip: {\n 'internal logic being tested and not something UI related': {\n in: [\n 'chromeDark',\n 'chrome8px',\n 'firefox8px',\n 'firefox',\n 'firefoxFlat8px',\n 'firefoxDark',\n 'ie118px',\n 'ie11',\n 'ie11Dark',\n ],\n },\n },\n });\n\n test('idle', async function () {\n await this.expect(await this.takeScreenshot()).to.matchImage('idle');\n });\n\n test('hover', async function () {\n await this.browser\n .actions()\n .move({\n origin: this.browser.findElement({ css: '[data-tid=\"icon\"]' }),\n })\n .perform();\n await delay(1000);\n await this.expect(await this.browser.takeScreenshot()).to.matchImage('open');\n });\n });\n story('top bottom center', ({ setStoryParameters }) => {\n setStoryParameters({\n skip: { \"themes don't affect logic\": { in: /^(?!\\bchrome2022\\b)/ } },\n });\n });\n story('HintNearScreenEdge', ({ setStoryParameters }) => {\n setStoryParameters({\n captureElement: 'body',\n skip: { 'no themes': { in: /^(?!\\b(chrome2022|firefox2022)\\b)/ } },\n });\n });\n\n story('HintWithoutPortal', () => {\n test('opened', async function () {\n await this.expect(await this.browser.takeScreenshot()).to.matchImage('open');\n });\n });\n});\n"],"mappings":"+RAAA,IAAAA,QAAA,GAAAC,OAAA;;AAEA,IAAAC,MAAA,GAAAD,OAAA;;AAEA,IAAAE,aAAI,EAAC,MAAM,EAAE,YAAM;EACjB,IAAAC,cAAK,EAAC,+BAA+B,EAAE,YAAM;IAC3C,IAAAC,aAAI,EAAC,eAAe,mBAAAC,kBAAA,CAAAC,OAAA,gBAAAC,YAAA,CAAAD,OAAA,CAAAE,IAAA,CA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