File tree Expand file tree Collapse file tree 4 files changed +49
-12
lines changed
apps/browser-extension-wallet/src/views/browser-view/features/sign-message
translation/src/lib/translations/core Expand file tree Collapse file tree 4 files changed +49
-12
lines changed Original file line number Diff line number Diff line change @@ -125,17 +125,29 @@ export const SignMessageDrawer: React.FC = () => {
125
125
126
126
const renderSignature = ( ) => (
127
127
< div className = { styles . inputGroup } >
128
- < ResultMessage
129
- customBgImg = { CheckSuccessImg }
130
- title = { t ( 'core.signMessage.successTitle' ) }
131
- description = { t ( 'core.signMessage.successDescription' ) }
132
- />
133
- < TextArea
134
- value = { signatureObject . signature }
135
- dataTestId = "sign-message-signature"
136
- rows = { 4 }
137
- className = { styles . customTextArea }
138
- />
128
+ < ResultMessage customBgImg = { CheckSuccessImg } title = { t ( 'core.signMessage.successTitle' ) } />
129
+ < div className = { styles . inputGroup } >
130
+ < Text . Body . Normal weight = "$medium" data-testid = { 'result-message-signature-label' } >
131
+ { t ( 'core.signMessage.signature' ) }
132
+ </ Text . Body . Normal >
133
+ < TextArea
134
+ value = { signatureObject . signature }
135
+ dataTestId = "sign-message-signature"
136
+ rows = { 4 }
137
+ className = { styles . customTextArea }
138
+ />
139
+ </ div >
140
+ < div className = { styles . inputGroup } >
141
+ < Text . Body . Normal weight = "$medium" data-testid = { 'result-message-key-label' } >
142
+ { t ( 'core.signMessage.key' ) }
143
+ </ Text . Body . Normal >
144
+ < TextArea
145
+ value = { signatureObject . key }
146
+ dataTestId = "sign-message-key"
147
+ rows = { 4 }
148
+ className = { styles . customTextArea }
149
+ />
150
+ </ div >
139
151
</ div >
140
152
) ;
141
153
Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ class MessageSigningAllDoneDrawerAssert {
21
21
await MessageSigningAllDoneDrawer . signature . waitForDisplayed ( ) ;
22
22
expect ( await MessageSigningAllDoneDrawer . signature . getText ( ) ) . to . not . be . empty ;
23
23
24
+ await MessageSigningAllDoneDrawer . signatureLabel . waitForDisplayed ( ) ;
25
+ expect ( await MessageSigningAllDoneDrawer . signatureLabel . getText ( ) ) . to . not . be . empty ;
26
+
27
+ await MessageSigningAllDoneDrawer . key . waitForDisplayed ( ) ;
28
+ expect ( await MessageSigningAllDoneDrawer . key . getText ( ) ) . to . not . be . empty ;
29
+
30
+ await MessageSigningAllDoneDrawer . keyLabel . waitForDisplayed ( ) ;
31
+ expect ( await MessageSigningAllDoneDrawer . keyLabel . getText ( ) ) . to . not . be . empty ;
32
+
24
33
await MessageSigningAllDoneDrawer . copyButton . waitForClickable ( ) ;
25
34
expect ( await MessageSigningAllDoneDrawer . copyButton . getText ( ) ) . to . equal (
26
35
await t ( 'core.signMessage.copyToClipboard' )
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ class MessageSigningAllDoneDrawer extends CommonDrawerElements {
7
7
private TITLE = '[data-testid="result-message-title"]' ;
8
8
private DESCRIPTION = '[data-testid="result-message-description"]' ;
9
9
private SIGNATURE = '[data-testid="sign-message-signature"]' ;
10
+ private SIGNATURE_LABEL = '[data-testid="result-message-signature-label"]' ;
11
+ private KEY = '[data-testid="sign-message-key"]' ;
12
+ private KEY_LABEL = '[data-testid="result-message-key-label"]' ;
10
13
private COPY_BUTTON = '[data-testid="copy-button"]' ;
11
14
private CLOSE_BUTTON = '[data-testid="close-button"]' ;
12
15
@@ -26,6 +29,18 @@ class MessageSigningAllDoneDrawer extends CommonDrawerElements {
26
29
return $ ( this . SIGNATURE ) ;
27
30
}
28
31
32
+ get signatureLabel ( ) : ChainablePromiseElement < WebdriverIO . Element > {
33
+ return $ ( this . SIGNATURE_LABEL ) ;
34
+ }
35
+
36
+ get key ( ) : ChainablePromiseElement < WebdriverIO . Element > {
37
+ return $ ( this . KEY ) ;
38
+ }
39
+
40
+ get keyLabel ( ) : ChainablePromiseElement < WebdriverIO . Element > {
41
+ return $ ( this . KEY_LABEL ) ;
42
+ }
43
+
29
44
get copyButton ( ) : ChainablePromiseElement < WebdriverIO . Element > {
30
45
return $ ( this . COPY_BUTTON ) ;
31
46
}
Original file line number Diff line number Diff line change 222
222
"core.signMessage.pleaseConfirmOnDevice" : " Please confirm the signing operation on your hardware wallet device." ,
223
223
"core.signMessage.copyToClipboard" : " Copy signature to clipboard" ,
224
224
"core.signMessage.successTitle" : " All done!" ,
225
- "core.signMessage.successDescription" : " This is the signature of your signed message" ,
225
+ "core.signMessage.signature" : " Signature" ,
226
+ "core.signMessage.key" : " Public Key" ,
226
227
"core.signMessage.nextButton" : " Next" ,
227
228
"core.signMessage.closeButton" : " Close" ,
228
229
"core.signMessage.signButton" : " Sign message" ,
You can’t perform that action at this time.
0 commit comments