@@ -8,8 +8,9 @@ class HomePage {
8
8
9
9
public headerNavbar : HeaderNavbar ;
10
10
11
- private readonly activityTab =
12
- '[data-testid="account-overview__activity-tab"]' ;
11
+ private readonly activityTab = {
12
+ testId : 'account-overview__activity-tab' ,
13
+ } ;
13
14
14
15
private readonly balance = '[data-testid="eth-overview__primary-currency"]' ;
15
16
@@ -23,19 +24,35 @@ class HomePage {
23
24
tag : 'h6' ,
24
25
} ;
25
26
26
- private readonly erc20TokenDropdown = '[data-testid="import-token-button"]' ;
27
+ private readonly erc20TokenDropdown = {
28
+ testId : 'import-token-button' ,
29
+ } ;
27
30
28
- private readonly nftTab = '[data-testid="account-overview__nfts-tab"]' ;
31
+ private readonly nftTab = {
32
+ testId : 'account-overview__nfts-tab' ,
33
+ } ;
29
34
30
35
private readonly popoverBackground = '.popover-bg' ;
31
36
32
- private readonly popoverCloseButton = '[data-testid="popover-close"]' ;
37
+ private readonly popoverCloseButton = {
38
+ testId : 'popover-close' ,
39
+ } ;
33
40
34
- private readonly refreshErc20Tokens = '[data-testid="refreshList"]' ;
41
+ private readonly privacyBalanceToggle = {
42
+ testId : 'sensitive-toggle' ,
43
+ } ;
35
44
36
- private readonly sendButton = '[data-testid="eth-overview-send"]' ;
45
+ private readonly refreshErc20Tokens = {
46
+ testId : 'refreshList' ,
47
+ } ;
37
48
38
- private readonly tokensTab = '[data-testid="account-overview__asset-tab"]' ;
49
+ private readonly sendButton = {
50
+ testId : 'eth-overview-send' ,
51
+ } ;
52
+
53
+ private readonly tokensTab = {
54
+ testId : 'account-overview__asset-tab' ,
55
+ } ;
39
56
40
57
constructor ( driver : Driver ) {
41
58
this . driver = driver ;
@@ -93,6 +110,10 @@ class HomePage {
93
110
await this . driver . clickElement ( this . sendButton ) ;
94
111
}
95
112
113
+ async togglePrivacyBalance ( ) : Promise < void > {
114
+ await this . driver . clickElement ( this . privacyBalanceToggle ) ;
115
+ }
116
+
96
117
/**
97
118
* Checks if the toaster message for adding a network is displayed on the homepage.
98
119
*
0 commit comments