TST: close Marketplace with NavigationCloseButton button

This commit is contained in:
Ivan Vershigora 2021-03-04 12:44:16 +03:00
parent daf8cf5b9a
commit 0f77e34848
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ const navigationStyle = ({ closeButton = false, closeButtonFunc, ...opts }, form
navigation.goBack(null);
};
headerRight = () => (
<TouchableOpacity style={styles.button} onPress={handleClose}>
<TouchableOpacity style={styles.button} onPress={handleClose} testID="NavigationCloseButton">
<Image source={theme.closeImage} />
</TouchableOpacity>
);

View File

@ -575,8 +575,7 @@ describe('BlueWallet UI Tests', () => {
await element(by.id('WalletDetailsScroll')).swipe('up', 'fast', 1);
await element(by.id('Marketplace')).tap();
await expect(element(by.id('MarketplaceWebView'))).toBeVisible();
await device.pressBack();
await device.pressBack();
await element(by.id('NavigationCloseButton')).tap();
// Broadcast
await element(by.id('WalletDetailsScroll')).swipe('up', 'fast', 1);