File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
packages/wix-style-react/src/Button Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ export interface ButtonUniDriver extends BaseUniDriver {
6
6
isButtonDisabled : ( ) => Promise < boolean > ;
7
7
isFocused : ( ) => Promise < boolean > ;
8
8
hasSkin : ( skinName : ButtonSkin ) => Promise < boolean > ;
9
+ isPrefixIconExists : ( ) => Promise < boolean > ;
10
+ isSuffixIconExists : ( ) => Promise < boolean > ;
9
11
}
10
12
11
13
export const buttonDriverFactory : ( base : BaseUniDriver ) => ButtonUniDriver ;
Original file line number Diff line number Diff line change @@ -31,5 +31,18 @@ export const buttonDriverFactory = base => {
31
31
* @return {Promise<boolean> }
32
32
*/
33
33
hasSkin : async skinName => ( await base . attr ( `data-skin` ) ) === skinName ,
34
+
35
+ /**
36
+ * Checks whether button has an icon prefix
37
+ * @return {Promise<boolean> }
38
+ */
39
+ isPrefixIconExists : buttonNextDriver . isPrefixIconExists ,
40
+
41
+ /**
42
+ * Checks whether button has an icon suffix
43
+ * @return {Promise<boolean> }
44
+ */
45
+ isSuffixIconExists : buttonNextDriver . isSuffixIconExists ,
46
+
34
47
} ;
35
48
} ;
You can’t perform that action at this time.
0 commit comments