File tree Expand file tree Collapse file tree 6 files changed +17
-13
lines changed
apps/browser-extension-wallet/src/views/browser-view/features/nfts
translation/src/lib/translations/core Expand file tree Collapse file tree 6 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -62,15 +62,15 @@ export const nftDetailSelector = (asset: AssetOrHandleInfo): NftDetailProps => {
62
62
image,
63
63
tokenInformation : [
64
64
{
65
- name : 'Policy ID' ,
65
+ name : i18n . t ( 'core.nftDetail.policyId' ) ,
66
66
value : asset . policyId . toString ( )
67
67
} ,
68
68
{
69
- name : 'Asset ID' ,
69
+ name : i18n . t ( 'core.nftDetail.assetId' ) ,
70
70
value : asset . assetId . toString ( )
71
71
} ,
72
72
{
73
- name : 'Media URL' ,
73
+ name : i18n . t ( 'core.nftDetail.mediaUrl' ) ,
74
74
value : image
75
75
}
76
76
] ,
Original file line number Diff line number Diff line change @@ -88,13 +88,13 @@ class NftAssert {
88
88
expect ( await NftDetails . tokenInfoSectionTitle . getText ( ) ) . to . equal ( await t ( 'core.nftDetail.tokenInformation' ) ) ;
89
89
90
90
await NftDetails . policyIdLabel . waitForDisplayed ( ) ;
91
- expect ( await NftDetails . policyIdLabel . getText ( ) ) . to . equal ( 'Policy ID' ) ; // TODO: replace with translation keys when LW-7278 is resolved
91
+ expect ( await NftDetails . policyIdLabel . getText ( ) ) . to . equal ( await t ( 'core.nftDetail.policyId' ) ) ;
92
92
await NftDetails . policyIdValue . waitForDisplayed ( ) ;
93
93
await NftDetails . assetIdLabel . waitForDisplayed ( ) ;
94
- expect ( await NftDetails . assetIdLabel . getText ( ) ) . to . equal ( 'Asset ID' ) ;
94
+ expect ( await NftDetails . assetIdLabel . getText ( ) ) . to . equal ( await t ( 'core.nftDetail.assetId' ) ) ;
95
95
await NftDetails . assetIdValue . waitForDisplayed ( ) ;
96
96
await NftDetails . mediaUrlLabel . waitForDisplayed ( ) ;
97
- expect ( await NftDetails . mediaUrlLabel . getText ( ) ) . to . equal ( 'Media URL' ) ;
97
+ expect ( await NftDetails . mediaUrlLabel . getText ( ) ) . to . equal ( await t ( 'core.nftDetail.mediaUrl' ) ) ;
98
98
await NftDetails . mediaUrlValue . waitForDisplayed ( ) ;
99
99
}
100
100
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { OnboardingMainPage } from '../onboarding/mainPage';
5
5
class AddNewWalletMainModal extends OnboardingMainPage {
6
6
private MODAL = '.ant-modal-content' ;
7
7
private CLOSE_BUTTON = '[data-testid="navigation-button-cross"]' ;
8
- private AREA_OUTSIDE_MODAL = '.ant-modal-mask' ;
8
+ private MODAL_MASK = '.ant-modal-mask' ;
9
9
10
10
get container ( ) : ChainablePromiseElement < WebdriverIO . Element > {
11
11
return $ ( this . MODAL ) ;
@@ -15,8 +15,8 @@ class AddNewWalletMainModal extends OnboardingMainPage {
15
15
return $ ( this . CLOSE_BUTTON ) ;
16
16
}
17
17
18
- get areaOutsideModal ( ) : ChainablePromiseElement < WebdriverIO . Element > {
19
- return $ ( this . AREA_OUTSIDE_MODAL ) ;
18
+ get modalMask ( ) : ChainablePromiseElement < WebdriverIO . Element > {
19
+ return $ ( this . MODAL_MASK ) ;
20
20
}
21
21
}
22
22
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ Feature: Add new wallet - Restore wallet
145
145
Examples :
146
146
| page | action |
147
147
| Mnemonic verification | I click "X " button on "Add new wallet " modal |
148
- # | Mnemonic verification | I click outside "Add new wallet" modal | BUG: LW-10975
148
+ | Mnemonic verification | I click outside "Add new wallet " modal |
149
149
150
150
@LW-9246
151
151
Scenario Outline : Extended-view - Multi-wallet - Restore - "<page>" page with any user input interaction - <action>
@@ -156,9 +156,9 @@ Feature: Add new wallet - Restore wallet
156
156
Examples :
157
157
| page | action |
158
158
| Mnemonic verification | I click "X " button on "Add new wallet " modal |
159
- # | Mnemonic verification | I click outside "Add new wallet" modal | BUG: LW-10975
159
+ | Mnemonic verification | I click outside "Add new wallet " modal |
160
160
| Wallet setup | I click "X " button on "Add new wallet " modal |
161
- # | Wallet setup | I click outside "Add new wallet" modal | BUG: LW-10975
161
+ | Wallet setup | I click outside "Add new wallet " modal |
162
162
163
163
@LW-9247
164
164
Scenario Outline : Extended-view - Multi-wallet - Restore - "Add new wallet" - <page> - "Are you sure you want to cancel adding a new wallet?" dialog - go back
Original file line number Diff line number Diff line change 49
49
) ;
50
50
51
51
When ( / ^ I c l i c k o u t s i d e " A d d n e w w a l l e t " m o d a l $ / , async ( ) => {
52
- await AddNewWalletMainModal . areaOutsideModal . click ( { x : 0 , y : 0 } ) ; // TODO: adjust when LW-10975 is resolved
52
+ await AddNewWalletMainModal . modalMask . moveTo ( { xOffset : 0 , yOffset : 0 } ) ;
53
+ await browser . action ( 'pointer' ) . down ( ) . perform ( ) ;
53
54
} ) ;
54
55
55
56
When (
Original file line number Diff line number Diff line change 320
320
"core.nftDetail.setAsAvatar" : " Set as your wallet avatar" ,
321
321
"core.nftDetail.title" : " NFT detail" ,
322
322
"core.nftDetail.tokenInformation" : " Token Information" ,
323
+ "core.nftDetail.policyId" : " Policy ID" ,
324
+ "core.nftDetail.assetId" : " Asset ID" ,
325
+ "core.nftDetail.mediaUrl" : " Media URL" ,
323
326
"core.outputSummaryList.deposit" : " Deposit" ,
324
327
"core.outputSummaryList.metaData" : " Metadata" ,
325
328
"core.outputSummaryList.output" : " Bundle" ,
You can’t perform that action at this time.
0 commit comments