From d02592e8830fb8ead25385de8b65ca8bedfbacf5 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Tue, 16 Feb 2021 16:46:31 +0300 Subject: [PATCH] feat(test): details test --- src/app/torrent-page.js | 4 +++- tests/details.test.js | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tests/details.test.js diff --git a/src/app/torrent-page.js b/src/app/torrent-page.js index 6e044bfb..3e43f068 100644 --- a/src/app/torrent-page.js +++ b/src/app/torrent-page.js @@ -165,6 +165,7 @@ const TorrentInformation = (props) => { } backgroundColor={yellow600} />} rightIcon={} + id="torrentSizeId" primaryText={__('Torrent Size')} secondaryText={formatBytes(torrent.size)} /> @@ -172,6 +173,7 @@ const TorrentInformation = (props) => { // leftAvatar={} backgroundColor={yellow600} />} rightIcon={} primaryText={__('Torrent contains files')} + id="torrentFilesId" secondaryText={torrent.files} onClick={() => { if(!props.parent) @@ -463,7 +465,7 @@ export default class TorrentPage extends Page { e.preventDefault(); }} icon={ - +