1
+ /* global WebdriverIO */
1
2
import CommonDrawerElements from '../CommonDrawerElements' ;
3
+ import type { ChainablePromiseElement } from 'webdriverio' ;
2
4
3
5
class CollateralDrawer extends CommonDrawerElements {
4
6
private COLLATERAL_DESCRIPTION = '[data-testid="collateral-description"]' ;
@@ -12,36 +14,36 @@ class CollateralDrawer extends CommonDrawerElements {
12
14
private SAD_FACE_ICON = '[data-testid="collateral-sad-face-icon"]' ;
13
15
private ERROR_LABEL = '[data-testid="collateral-not-enough-ada-error"]' ;
14
16
15
- get sadFaceIcon ( ) {
17
+ get sadFaceIcon ( ) : ChainablePromiseElement < WebdriverIO . Element > {
16
18
return $ ( this . SAD_FACE_ICON ) ;
17
19
}
18
- get error ( ) {
20
+ get error ( ) : ChainablePromiseElement < WebdriverIO . Element > {
19
21
return $ ( this . ERROR_LABEL ) ;
20
22
}
21
23
22
- get collateralDescription ( ) {
24
+ get collateralDescription ( ) : ChainablePromiseElement < WebdriverIO . Element > {
23
25
return $ ( this . COLLATERAL_DESCRIPTION ) ;
24
26
}
25
27
26
- get collateralBannerDescription ( ) {
28
+ get collateralBannerDescription ( ) : ChainablePromiseElement < WebdriverIO . Element > {
27
29
return $ ( this . COLLATERAL_BANNER_DESCRIPTION ) ;
28
30
}
29
- get passwordInput ( ) {
31
+ get passwordInput ( ) : ChainablePromiseElement < WebdriverIO . Element > {
30
32
return $ ( this . PASSWORD_INPUT ) ;
31
33
}
32
- get passwordInputContainer ( ) {
34
+ get passwordInputContainer ( ) : ChainablePromiseElement < WebdriverIO . Element > {
33
35
return $ ( this . PASSWORD_INPUT_CONTAINER ) ;
34
36
}
35
- get transactionFeeLabel ( ) {
37
+ get transactionFeeLabel ( ) : ChainablePromiseElement < WebdriverIO . Element > {
36
38
return $ ( this . TRANSACTION_FEE_LABEL ) ;
37
39
}
38
- get transactionFeeAmount ( ) {
40
+ get transactionFeeAmount ( ) : ChainablePromiseElement < WebdriverIO . Element > {
39
41
return $ ( this . TRANSACTION_FEE_AMOUNT ) ;
40
42
}
41
- get transactionFeeFiat ( ) {
43
+ get transactionFeeFiat ( ) : ChainablePromiseElement < WebdriverIO . Element > {
42
44
return $ ( this . TRANSACTION_FEE_AMOUNT_FIAT ) ;
43
45
}
44
- get collateralButton ( ) {
46
+ get collateralButton ( ) : ChainablePromiseElement < WebdriverIO . Element > {
45
47
return $ ( this . COLLATERAL_BUTTON ) ;
46
48
}
47
49
}
0 commit comments