@@ -35,9 +35,15 @@ class SettingsPageAssert {
35
35
expect ( await SettingsPage . betaProgramLink . getTitleText ( ) ) . to . equal (
36
36
await t ( 'browserView.settings.preferences.betaProgram.title' )
37
37
) ;
38
+ expect ( await SettingsPage . debuggingLink . getTitleText ( ) ) . to . equal (
39
+ await t ( 'browserView.settings.preferences.debugging.title' )
40
+ ) ;
38
41
expect ( await SettingsPage . showRecoveryPhraseLink . getTitleText ( ) ) . to . equal (
39
42
await t ( 'browserView.settings.security.showPassphrase.title' )
40
43
) ;
44
+ expect ( await SettingsPage . generatePaperWallet . getTitleText ( ) ) . to . equal (
45
+ await t ( 'browserView.settings.generatePaperWallet.title' )
46
+ ) ;
41
47
// TODO: temporarily disabled due to LW-2907
42
48
// expect(await SettingsPage.passphraseVerificationLink.getTitleText()).to.equal(
43
49
// await t('browserView.settings.security.passphrasePeriodicVerification.title')
@@ -89,9 +95,15 @@ class SettingsPageAssert {
89
95
expect ( await SettingsPage . betaProgramLink . getDescriptionText ( ) ) . to . equal (
90
96
await t ( 'browserView.settings.preferences.betaProgram.description' )
91
97
) ;
98
+ expect ( await SettingsPage . debuggingLink . getDescriptionText ( ) ) . to . equal (
99
+ await t ( 'browserView.settings.preferences.debugging.description' )
100
+ ) ;
92
101
expect ( await SettingsPage . showRecoveryPhraseLink . getDescriptionText ( ) ) . to . equal (
93
102
await t ( 'browserView.settings.security.showPassphrase.description' )
94
103
) ;
104
+ expect ( await SettingsPage . generatePaperWallet . getDescriptionText ( ) ) . to . equal (
105
+ await t ( 'browserView.settings.generatePaperWallet.description' )
106
+ ) ;
95
107
// TODO: temporarily disabled due to LW-2907
96
108
// expect(await SettingsPage.passphraseVerificationLink.getDescriptionText()).to.equal(
97
109
// await t('browserView.settings.security.passphrasePeriodicVerification.description')
@@ -126,6 +138,7 @@ class SettingsPageAssert {
126
138
127
139
async assertSeeHeadings ( ) {
128
140
expect ( await SettingsPage . walletHeader . getText ( ) ) . to . equal ( await t ( 'browserView.settings.wallet.title' ) ) ;
141
+ expect ( await SettingsPage . preferencesHeader . getText ( ) ) . to . equal ( await t ( 'browserView.settings.preferences.title' ) ) ;
129
142
expect ( await SettingsPage . securityHeader . getText ( ) ) . to . equal ( await t ( 'browserView.settings.security.title' ) ) ;
130
143
expect ( await SettingsPage . supportHeader . getText ( ) ) . to . equal ( await t ( 'browserView.settings.help.support.title' ) ) ;
131
144
expect ( await SettingsPage . legalHeader . getText ( ) ) . to . equal ( await t ( 'browserView.settings.legal.title' ) ) ;
@@ -165,6 +178,32 @@ class SettingsPageAssert {
165
178
await SettingsPage . analyticsSwitch . waitForDisplayed ( ) ;
166
179
}
167
180
181
+ async assertSeeBetaProgramSection ( switchChecked : boolean ) {
182
+ await SettingsPage . betaProgramLink . title . waitForDisplayed ( ) ;
183
+ expect ( await SettingsPage . betaProgramLink . getTitleText ( ) ) . to . equal (
184
+ await t ( 'browserView.settings.preferences.betaProgram.title' )
185
+ ) ;
186
+ await SettingsPage . betaProgramLink . description . waitForDisplayed ( ) ;
187
+ expect ( await SettingsPage . betaProgramLink . getDescriptionText ( ) ) . to . equal (
188
+ await t ( 'browserView.settings.preferences.betaProgram.description' )
189
+ ) ;
190
+ await SettingsPage . betaProgramSwitch . waitForDisplayed ( ) ;
191
+ expect ( await SettingsPage . betaProgramSwitch . getAttribute ( 'aria-checked' ) ) . to . equal ( String ( switchChecked ) ) ;
192
+ }
193
+
194
+ async assertSeeDebuggingSection ( switchChecked : boolean ) {
195
+ await SettingsPage . debuggingLink . title . waitForDisplayed ( ) ;
196
+ expect ( await SettingsPage . debuggingLink . getTitleText ( ) ) . to . equal (
197
+ await t ( 'browserView.settings.preferences.debugging.title' )
198
+ ) ;
199
+ await SettingsPage . debuggingLink . description . waitForDisplayed ( ) ;
200
+ expect ( await SettingsPage . debuggingLink . getDescriptionText ( ) ) . to . equal (
201
+ await t ( 'browserView.settings.preferences.debugging.description' )
202
+ ) ;
203
+ await SettingsPage . debuggingSwitch . waitForDisplayed ( ) ;
204
+ expect ( await SettingsPage . betaProgramSwitch . getAttribute ( 'aria-checked' ) ) . to . equal ( String ( switchChecked ) ) ;
205
+ }
206
+
168
207
async assertShowRecoveryPhraseIsDisplayedUnderSecuritySection ( ) {
169
208
await SettingsPage . securitySettingsElements [ 0 ] . waitForClickable ( ) ;
170
209
// eslint-disable-next-line no-undef
0 commit comments