|
|
|
@ -133,6 +133,24 @@ module.exports = { |
|
|
|
|
.checkElementStyle(':root', '--info', remixIdeThemes.cyborg.info) |
|
|
|
|
.checkElementStyle(':root', '--warning', remixIdeThemes.cyborg.warning) |
|
|
|
|
.checkElementStyle(':root', '--danger', remixIdeThemes.cyborg.danger) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should load zh-CN locale ': function (browser) { |
|
|
|
|
browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) |
|
|
|
|
.scrollAndClick('*[data-id="settingsTabLocaleLabelzh-CN"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.assert.containsText('*[data-id="sidePanelSwapitTitle"]', '设置') |
|
|
|
|
.assert.containsText('*[data-id="listenNetworkCheckInput"]', '监听所有交易') |
|
|
|
|
.assert.containsText('*[data-id="settingsTabGenerateContractMetadataLabel"]', '生成合约元数据') |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'Should load en-US locale ': function (browser) { |
|
|
|
|
browser.waitForElementVisible('*[data-id="verticalIconsKindsettings"]', 5000) |
|
|
|
|
.scrollAndClick('*[data-id="settingsTabLocaleLabelen-US"]') |
|
|
|
|
.pause(2000) |
|
|
|
|
.assert.containsText('*[data-id="sidePanelSwapitTitle"]', 'SETTINGS') |
|
|
|
|
.assert.containsText('*[data-id="listenNetworkCheckInput"]', 'listen on all transactions') |
|
|
|
|
.assert.containsText('*[data-id="settingsTabGenerateContractMetadataLabel"]', 'Generate contract metadata') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|