Skip to content

feat: add token tag component (#13599) #13644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

J-Son89
Copy link
Contributor

@J-Son89 J-Son89 commented Jul 9, 2022

fixes #13599

Summary

Implements UI Component - Token tag

This implements and light and dark mode for the token tag component, it does not include the blurred versions of these as discussed with @cammellos and the solution for this needs to be discussed first.

Platforms

  • Android.
  • iOS

Areas that maybe impacted

Test in quo 2 components

Steps to test

  • Open Status
  • Open Options
  • -Open Quo2 Preview

status: ready

@ghost
Copy link

ghost commented Jul 9, 2022

Hey @J-Son89, and thank you so much for making your first pull request in status-react! ❤️ Please help us make your experience better by filling out this brief questionnaire https://goo.gl/forms/uWqNcVpVz7OIopXg2

@status-im-auto
Copy link
Member

status-im-auto commented Jul 9, 2022

Jenkins Builds

Click to see older builds (49)
Commit #️⃣ Finished (UTC) Duration Platform Result
dcc88fc #1 2022-07-09 11:36:38 ~26 sec android-e2e 📄log
dcc88fc #1 2022-07-09 11:36:38 ~21 sec ios 📄log
dcc88fc #1 2022-07-09 11:36:42 ~24 sec android 📄log
✖️ 7d8d880 #3 2022-07-11 00:11:06 ~9 min android-e2e 📦apk 📲
✖️ 7d8d880 #3 2022-07-11 00:11:31 ~9 min android 📦apk 📲
✖️ 7d8d880 #3 2022-07-11 00:13:11 ~11 min ios 📦ipa 📲
✔️ 7892c51 #2 2022-07-11 00:11:41 ~11 min android-e2e 📦apk 📲
✔️ 7892c51 #2 2022-07-11 00:11:42 ~11 min ios 📦ipa 📲
✔️ da40c3a #4 2022-07-11 10:48:29 ~9 min ios 📦ipa 📲
✔️ da40c3a #4 2022-07-11 10:50:25 ~11 min android-e2e 📦apk 📲
✔️ 27bc509 #5 2022-07-11 23:27:32 ~9 min ios 📦ipa 📲
✔️ 27bc509 #5 2022-07-11 23:29:27 ~11 min android-e2e 📦apk 📲
✔️ 13be046 #6 2022-07-28 12:58:18 ~9 min android-e2e 📦apk 📲
✔️ 13be046 #6 2022-07-28 12:59:03 ~10 min ios 📦ipa 📲
✔️ 13be046 #6 2022-07-28 12:59:05 ~10 min android 📦apk 📲
✔️ fc620d1 #7 2022-08-01 10:04:32 ~10 min ios 📦ipa 📲
✔️ fc620d1 #7 2022-08-01 10:05:31 ~11 min android 📦apk 📲
✔️ fc620d1 #7 2022-08-01 10:05:46 ~11 min android-e2e 📦apk 📲
✖️ ed3cb425 #8 2022-08-04 10:44:02 ~9 min ios 📦ipa 📲
✖️ ed3cb425 #8 2022-08-04 10:45:05 ~10 min android 📦apk 📲
✖️ ed3cb425 #8 2022-08-04 10:45:33 ~11 min android-e2e 📦apk 📲
✔️ c181fd2 #9 2022-08-04 11:13:26 ~11 min ios 📦ipa 📲
✔️ c181fd2 #9 2022-08-04 11:14:04 ~11 min android 📦apk 📲
✖️ 49a6ff6 #10 2022-08-08 20:34:52 ~8 min android-e2e 📦apk 📲
✖️ 49a6ff6 #10 2022-08-08 20:37:51 ~11 min ios 📦ipa 📲
✔️ da24629 #11 2022-08-09 09:01:50 ~8 min android 📦apk 📲
✔️ da24629 #11 2022-08-09 09:02:05 ~8 min android-e2e 📦apk 📲
✔️ da24629 #11 2022-08-09 09:04:59 ~11 min ios 📦ipa 📲
✔️ ecad3c4 #12 2022-08-16 13:40:24 ~7 min android-e2e 📦apk 📲
✔️ ecad3c4 #12 2022-08-16 13:40:44 ~7 min android 📦apk 📲
✔️ ecad3c4 #12 2022-08-16 13:42:50 ~9 min ios 📦ipa 📲
✔️ f114fb5 #13 2022-08-16 13:52:36 ~7 min android-e2e 📦apk 📲
✔️ f114fb5 #13 2022-08-16 13:52:59 ~7 min android 📦apk 📲
✔️ f114fb5 #13 2022-08-16 13:55:00 ~9 min ios 📦ipa 📲
✔️ 3653b80 #14 2022-08-22 10:06:18 ~8 min android-e2e 📦apk 📲
✔️ 3653b80 #14 2022-08-22 10:06:30 ~9 min android 📦apk 📲
✔️ 3653b80 #14 2022-08-22 10:09:19 ~11 min ios 📦ipa 📲
✔️ 177d181 #15 2022-08-24 11:00:18 ~7 min android 📦apk 📲
✔️ 177d181 #15 2022-08-24 11:00:21 ~7 min android-e2e 📦apk 📲
✔️ 177d181 #15 2022-08-24 11:14:49 ~22 min ios 📦ipa 📲
✔️ 56e80b8 #16 2022-08-24 13:43:10 ~13 min android 📦apk 📲
✔️ 56e80b8 #16 2022-08-24 13:44:05 ~14 min android-e2e 📦apk 📲
✔️ 56e80b8 #16 2022-08-24 13:48:23 ~18 min ios 📦ipa 📲
✔️ e774b2b #18 2022-08-24 18:09:13 ~7 min android-e2e 📦apk 📲
✔️ e774b2b #18 2022-08-24 18:09:17 ~7 min android 📦apk 📲
✔️ e774b2b #18 2022-08-24 18:20:33 ~19 min ios 📦ipa 📲
✔️ 17588f7 #19 2022-08-25 10:52:07 ~8 min android-e2e 📦apk 📲
✔️ 17588f7 #19 2022-08-25 10:52:19 ~9 min android 📦apk 📲
✔️ 17588f7 #19 2022-08-25 11:03:26 ~20 min ios 📦ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 684e74c #20 2022-08-25 11:30:32 ~8 min android-e2e 📦apk 📲
✔️ 684e74c #20 2022-08-25 11:30:39 ~8 min android 📦apk 📲
✔️ 684e74c #20 2022-08-25 11:43:37 ~21 min ios 📦ipa 📲
✔️ a4b20b3 #21 2022-08-25 13:14:13 ~7 min android-e2e 📦apk 📲
✔️ a4b20b3 #21 2022-08-25 13:14:22 ~7 min android 📦apk 📲
✔️ a4b20b3 #21 2022-08-25 13:25:34 ~18 min ios 📦ipa 📲

:border-radius 100
:border-color (if (= (theme/get-theme) :dark) colors/black colors/white)
:border-width 1
:right -20
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps there's a better way to get the purchase and checkmark icon sitting in the right place as per the designs 🤔

@Parveshdhull
Copy link
Member

Parveshdhull commented Jul 10, 2022

Hi @J-Son89, thank you for the contribution.
You need to rebase your branch against develop for fixing the build error.

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch 2 times, most recently from 7892c51 to 7d8d880 Compare July 11, 2022 00:01
@Parveshdhull
Copy link
Member

@J-Son89 linting failed, you can run make lint to see the errors. And then you can fix them manually or run make lint-fix

@Parveshdhull
Copy link
Member

image
image

We should use same naming convention for all token icons. Maybe same as figma names, like
token-logo-snt, token-logo-eth, token-logo-default

Copy link
Contributor

@cammellos cammellos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you, I think just a few style issues & linting, great job!

(def themes {:light {:background-color colors/neutral-20}
:dark {:background-color colors/neutral-80}})

(defn get-value-from-size [size, big-option, small-option]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need of commas between parameters

Copy link
Contributor Author

@J-Son89 J-Son89 Jul 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

[status-im.ui.components.icons.icons :as icons]
[quo2.components.text :as text]))

(def themes {:light {:background-color colors/neutral-20}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation is a bit off, we either leave a single space, or align values vertically

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool, I set it to a single space

}"
[_ _]
(fn [{:keys [token value size icon-name border-color is-required is-purchasable] :or {size :small}}]
[rn/view {:style (merge (style-container size border-color is-required) (get-in themes [(theme/get-theme)]))}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to use (get-in themes [(theme/get-theme)]), if not a nested map, you can use get

(get themes (theme/get-theme))

or (fun facts)

(themes (theme/get-theme))
((theme/get-theme) themes))

as both keywords and maps implement IFn (https://clojure.github.io/clojure/javadoc/clojure/lang/IFn.html ) and implement get.

(get themes (theme/get-theme)) is the most readable :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, thanks Andrea! :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch from 7d8d880 to da40c3a Compare July 11, 2022 10:38
@@ -23,6 +24,9 @@
{:name :quo2-tabs
:insets {:top false}
:component tabs/preview-tabs}
{:name :quo2-token_tag
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to use quo2-token-tag, so that all screen names looks similar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Parveshdhull
Copy link
Member

Also result looks different when is required or is Purchasable is enabled,
Design:
image
PR:
File

@J-Son89
Copy link
Contributor Author

J-Son89 commented Jul 11, 2022

Also result looks different when is required or is Purchasable is enabled, Design: image PR: File

I discussed with Pedro from the design team, and the border color for the required icon should be able to be set externally. e.g so that certain groups can use it themed for their group.

Although, now I think about it. The purple used in the design should probably be the default color unless another border color is set.

@cammellos
Copy link
Contributor

Also result looks different when is required or is Purchasable is enabled, Design: image PR: File

I discussed with Pedro from the design team, and the border color for the required icon should be able to be set externally. e.g so that certain groups can use it themed for their group.

Although, now I think about it. The purple used in the design should probably be the default color unless another border color is set.

Yes, I think they always come in purple (two different shades, one for light & one for dark), so no need to make the color customizable, as well because the icons at the moment they come already with that color:

https://www.figma.com/file/qLLuMLfpGxK9OfpIavwsmK/Mobile-Iconset?node-id=971%3A71

This one should be the right size, main-icons/verified is the old one, you can export also the dark mode version from figma (similarly for the + sign), let me know if you need any help and I can do that for you, if you'd like me to.

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch from da40c3a to 27bc509 Compare July 11, 2022 23:17
@J-Son89
Copy link
Contributor Author

J-Son89 commented Jul 11, 2022

Also result looks different when is required or is Purchasable is enabled, Design: image PR: File

I discussed with Pedro from the design team, and the border color for the required icon should be able to be set externally. e.g so that certain groups can use it themed for their group.
Although, now I think about it. The purple used in the design should probably be the default color unless another border color is set.

Yes, I think they always come in purple (two different shades, one for light & one for dark), so no need to make the color customizable, as well because the icons at the moment they come already with that color:

https://www.figma.com/file/qLLuMLfpGxK9OfpIavwsmK/Mobile-Iconset?node-id=971%3A71

This one should be the right size, main-icons/verified is the old one, you can export also the dark mode version from figma (similarly for the + sign), let me know if you need any help and I can do that for you, if you'd like me to.

I removed border-color and color from the required and purchasable-icons so that these just come from the icons directly.

also I added a default value for the required icon (the new icon above) and set the default value of the border-color of the whole tag to match too.
I also added a prop so that the required icon can be set an the border-color of the whole tag too. This is so that other versions of the theme tag can be set. This is for the use case I discussed with Pedro from the design team.

@flexsurfer
Copy link
Member

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch 2 times, most recently from 13be046 to fc620d1 Compare August 1, 2022 09:53
@J-Son89
Copy link
Contributor Author

J-Son89 commented Aug 1, 2022

regarding icons naming https://discord.com/channels/624205794384281629/626744384565674034/991236399737098240

updated the files I used to match this

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch 2 times, most recently from 49a6ff6 to da24629 Compare August 9, 2022 08:53
@@ -260,3 +260,5 @@

(defn theme-colors [light dark]
(if (theme/dark?) dark light))

;;;;Customisation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no Customisation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops, must remove that too! thanks

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch 2 times, most recently from ecad3c4 to f114fb5 Compare August 16, 2022 13:44
(if (= size :big) big-option small-option))

(defn tag-container [size border-color]
(merge {:height (if border-color (get-value-from-size size 34 26) (get-value-from-size size 32 24))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If components are created from the bottom up, like small/base components first, and then used to create new components with the same padding/margin as Figma, then the height will automatically be 32. And if height is not hard-coded then border-width automatically will be applied outside and we don't need to calculate new height as for border-width (as same as you don't need to calculate new width). (no strong opinion, just thinking out loud)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah so I just added another view around this so I could hardcode the height and with of the child view. Which means the border height will be added outside automatically.

:align-items :center
:flex-direction :row
:left 0
:border-radius 100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 100?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I think I just maxed it out. I guess at some point it makes no odds so I will adjust it down to the right setting

Comment on lines 23 to 28
(defn tag "[tag opts \"label\"]
opts
{
:size :small/:big
:token-img-src :token-img-src
:token-img-style {}
:border-color :color
:text-value string
:overlay child-elements
}"
[_ _]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding comments.
From comment it looks like you meant to pass label as argument, but then you used text-value ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will adjust!

Comment on lines 39 to 50
(when (or is-required is-purchasable) [rn/view {:style (merge icon-container-styles {:width 14
:height 14
:background-color border-color
:border-color (if (= (theme/get-theme) :dark) colors/black colors/white)
:border-width 1
:right (get-value-from-size size -3 -5)
:bottom (get-value-from-size size (- 32 7 (if is-required 5 4)) (- 24 7 (if is-required 4 2))) ; (- height (icon-height/2) spacing)
})}
[icons/icon (if is-required :main-icons2/required-checkmark12 :main-icons2/purchasable12) (merge {:no-color true
:width (if is-required 7 12)
:height (if is-required 6 12)}
(when is-required {:container-style {:margin-right 1}}))]])}]))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to move [rn/view ... to new line. (When it is possible, please, keep lines' length shorter/equal 80 chars.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted, thanks Parvesh :)

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch from f114fb5 to 3653b80 Compare August 22, 2022 09:57
@flexsurfer flexsurfer requested a review from jo-mut August 24, 2022 09:39
@flexsurfer
Copy link
Member

@jo-mut i see a tag component in you community PR , could please take a look at this PR

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch from 3653b80 to 177d181 Compare August 24, 2022 10:52
@J-Son89
Copy link
Contributor Author

J-Son89 commented Aug 24, 2022

@jo-mut i see a tag component in you community PR , could please take a look at this PR

I'll be following onto John's work on communities in some other work so I can also look into making them both referencing the same base tag component

:border-width 1
:right (get-value-from-size size -3.75 -5.75)
:bottom (get-value-from-size size (- 32 7.75 4) (- 24 7.75 2)) ; (- height (icon-height/2) spacing)
})}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

@jo-mut
Copy link
Contributor

jo-mut commented Aug 24, 2022

I think all tags are sharing some properties. I implemented a base-tag but I think some properties are also missing on the base-tag. I will look into it

@J-Son89
Copy link
Contributor Author

J-Son89 commented Aug 24, 2022

I think all tags are sharing some properties. I implemented a base-tag but I think some properties are also missing on the base-tag. I will look into it

cool, we can follow up to refactor both of these once this work is merged in.

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch from 177d181 to 56e80b8 Compare August 24, 2022 13:29
@jo-mut
Copy link
Contributor

jo-mut commented Aug 24, 2022

yeah its just refactoring. As it is looks okay

Copy link
Contributor

@jo-mut jo-mut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this okay to merge.

@J-Son89 J-Son89 force-pushed the feat/token-tag-component branch 2 times, most recently from 6af786f to e774b2b Compare August 24, 2022 18:01
Copy link
Member

@Parveshdhull Parveshdhull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than below comments, looks great. Thank you

(As you mentioned on discord, this PR already have approval from design team, So please feel free to merge it)

:flex-direction :row
:border-radius 20})

(defn tag "[tag opts]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No strong opinion, but it will be great if text-value/label is passed as argument, so that all components follow same pattern
Ex. 1 2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Parvesh, I'll adjust 👍

Comment on lines +14 to +17
{:height (get-value-from-size size 32 24)
:align-items :center
:flex-direction :row
:border-radius 20})
Copy link
Member

@Parveshdhull Parveshdhull Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion, but we usually indent values inside map (more readable). Example
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool :)

Comment on lines 11 to 16
(def icon-container-styles {:display :flex
:align-items :center
:justify-content :center
:position :absolute
:border-radius 20
:margin-left 2})
Copy link
Member

@Parveshdhull Parveshdhull Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, please indent all maps

@status-im-auto
Copy link
Member

88% of end-end tests have passed

Total executed tests: 86
Failed tests: 10
Passed tests: 76
Not executed tests: 1
IDs of not executed tests: 702157 
IDs of failed tests: 700758,6263,700762,5319,700761,702076,6270,700760,700744,702158 

Not executed tests (1)

Click to expand
  • Rerun not executed tests
  • Failed tests (10)

    Click to expand
  • Rerun failed tests

  • Class TestPublicChatMultipleDeviceMerged:

    1. test_public_chat_delete_chat_long_press, id: 5319

    Device 1: Looking for chat: '#pub-chat'
    Device 1: Wait for element `Button` for max 30s and click when it is available

    critical/test_public_chat_browsing.py:142: in test_public_chat_delete_chat_long_press
        self.home_1.delete_chat_long_press('#%s' % self.pub_chat_delete_long_press)
    ../views/home_view.py:371: in delete_chat_long_press
        self.get_chat(username).long_press_element()
    ../views/home_view.py:255: in get_chat
        self.notifications_unread_badge.wait_and_click(wait_time)
    ../views/base_element.py:370: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:135: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: Button by accessibility id:`notifications-unread-badge` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    2. test_public_chat_mark_all_messages_as_read, id: 6270

    Device 1: Long press on ChatElement
    Device 1: Find Button by accessibility id: mark-all-read-button

    critical/test_public_chat_browsing.py:217: in test_public_chat_mark_all_messages_as_read
        self.home_1.mark_all_messages_as_read_button.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 1: Button by accessibility id: `mark-all-read-button` is not found on the screen
    



    Device sessions

    Class TestPublicChatBrowserOneDeviceMerged:

    1. test_browser_delete_close_tabs, id: 702076

    Device 1: Find Button by xpath: //*[contains(@text, 'bbc.com')]/../../../../*[@content-desc='empty-tab']
    Device 1: Tap on found: Button

    critical/test_public_chat_browsing.py:423: in test_browser_delete_close_tabs
        web_page.element_by_text_part(urls['bbc.com']).wait_for_invisibility_of_element()
    ../views/base_element.py:144: in wait_for_invisibility_of_element
        raise TimeoutException("Device %s: %s by %s: `%s`  is still visible on the screen after %s seconds after wait_for_invisibility_of_element" % (
     Device 1: Button by xpath: `//*[contains(@text, "bbc.com")]`  is still visible on the screen after 10 seconds after wait_for_invisibility_of_element
    



    Device sessions

    Class TestOnboardingOneDeviceMerged:

    1. test_onboarding_share_wallet_address, id: 700744

    Device 1: Looking for chat: '#yvwxdsk'
    Device 1: Wait for element Button for max 30s and click when it is available

    critical/onboarding/test_onboarding_flows.py:88: in test_onboarding_share_wallet_address
        self.home.get_chat('#%s' % self.public_chat_name).click()
    ../views/home_view.py:255: in get_chat
        self.notifications_unread_badge.wait_and_click(wait_time)
    ../views/base_element.py:370: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:135: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 1: Button by accessibility id:`notifications-unread-badge` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    Class TestWalletManagementDeviceMerged:

    1. test_wallet_manage_assets, id: 700758

    Device 1: Selecting asset(s)
    Device 1: Find Button by accessibility id: accounts-more-options

    critical/wallet_and_tx/test_wallet.py:125: in test_wallet_manage_assets
        self.wallet.select_asset(asset)
    ../views/wallet_view.py:276: in select_asset
        self.multiaccount_more_options.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 1: Button by accessibility id: `accounts-more-options` is not found on the screen
    



    Device sessions

    2. test_wallet_add_account_seed_phrase_validation, id: 700762

    Device 1: Click until HomeButton by xpath: //*[contains(@content-desc,'tab, 1 out of 5')] will be presented
    Device 1: HomeButton element not found

    critical/wallet_and_tx/test_wallet.py:260: in test_wallet_add_account_seed_phrase_validation
        self.wallet.accounts_status_account.swipe_left_on_element()
    ../views/base_element.py:262: in swipe_left_on_element
        element = self.find_element()
    ../views/base_element.py:391: in find_element
        raise NoSuchElementException(
     Device 1: `AccountElementButton` by `xpath`:`//*[@content-desc='accountcardMain account']` not found on the screen
    



    Device sessions

    3. test_wallet_add_hide_unhide_account_private_key, id: 700761

    Device 1: Click until HomeButton by xpath: //*[contains(@content-desc,'tab, 1 out of 5')] will be presented
    Device 1: HomeButton element not found

    critical/wallet_and_tx/test_wallet.py:196: in test_wallet_add_hide_unhide_account_private_key
        self.wallet.accounts_status_account.swipe_left_on_element()
    ../views/base_element.py:262: in swipe_left_on_element
        element = self.find_element()
    ../views/base_element.py:391: in find_element
        raise NoSuchElementException(
     Device 1: `AccountElementButton` by `xpath`:`//*[@content-desc='accountcardMain account']` not found on the screen
    



    Device sessions

    4. test_wallet_add_delete_watch_only_account, id: 700760

    Device 1: Click until HomeButton by xpath: //*[contains(@content-desc,'tab, 1 out of 5')] will be presented
    Device 1: HomeButton element not found

    critical/wallet_and_tx/test_wallet.py:147: in test_wallet_add_delete_watch_only_account
        self.wallet.accounts_status_account.swipe_left_on_element()
    ../views/base_element.py:262: in swipe_left_on_element
        element = self.find_element()
    ../views/base_element.py:391: in find_element
        raise NoSuchElementException(
     Device 1: `AccountElementButton` by `xpath`:`//*[@content-desc='accountcardMain account']` not found on the screen
    



    Device sessions

    Class TestEnsStickersMultipleDevicesMerged:

    1. test_start_new_chat_public_key_validation, id: 702158

    Device 2: HomeButton element not found
    Device 1: Find Button by accessibility id: new-chat-button

    critical/chats/test_1_1_public_chats.py:1177: in test_start_new_chat_public_key_validation
        self.home_1.plus_button.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 1: Button by accessibility id: `new-chat-button` is not found on the screen
    



    Device sessions

    Class TestCommandsMultipleDevicesMerged:

    1. test_1_1_chat_command_request_and_send_tx_stt_in_1_1_chat_offline, id: 6263

    Device 2: Selecting asset(s)
    Device 2: Find Button by accessibility id: accounts-more-options

    critical/chats/test_1_1_public_chats.py:158: in test_1_1_chat_command_request_and_send_tx_stt_in_1_1_chat_offline
        self.wallet_2.select_asset(asset_name)
    ../views/wallet_view.py:276: in select_asset
        self.multiaccount_more_options.click()
    ../views/base_element.py:90: in click
        self.find_element().click()
    ../views/base_element.py:79: in find_element
        raise NoSuchElementException(
     Device 2: Button by accessibility id: `accounts-more-options` is not found on the screen
    



    Device sessions

    Passed tests (76)

    Click to expand

    Class TestSendTxDeviceMerged:

    1. test_send_tx_eth_check_logcat, id: 700763
    Device sessions

    2. test_send_tx_custom_token_18_decimals_invalid_password, id: 700765
    Device sessions

    3. test_send_tx_token_8_decimals, id: 700764
    Device sessions

    4. test_send_tx_set_recipient_options, id: 700757
    Device sessions

    5. test_send_tx_sign_message_2tx_in_batch_tx_filters_request_stt_testdapp, id: 5342
    Device sessions

    Class TestPublicChatMultipleDeviceMerged:

    1. test_public_chat_message_edit, id: 700734
    Device sessions

    2. test_public_chat_unread_messages_counter, id: 5360
    Device sessions

    3. test_public_chat_emoji_send_copy_paste_reply, id: 700719
    Device sessions

    4. test_public_chat_unread_messages_counter_for_mention_relogin, id: 700718
    Device sessions

    5. test_public_chat_link_send_open, id: 700736
    Device sessions

    6. test_public_chat_links_with_previews_github_youtube_twitter_gif_send_enable, id: 700737
    Device sessions

    7. test_public_chat_message_send_check_timestamps_while_on_different_tab, id: 5313
    Device sessions

    8. test_public_chat_message_delete, id: 700735
    Device sessions

    Class TestPublicChatBrowserOneDeviceMerged:

    1. test_public_chat_open_using_deep_link, id: 700739
    Device sessions

    2. test_browser_bookmarks_create_edit_remove, id: 702077
    Device sessions

    3. test_browser_blocked_url, id: 702072
    Device sessions

    4. test_browser_connection_is_secure_not_secure_warning, id: 702073
    Device sessions

    5. test_browser_web3_permissions_testdapp, id: 702078
    Device sessions

    6. test_public_chat_tag_message, id: 700738
    Device sessions

    7. test_public_chat_navigate_to_chat_when_relaunch, id: 5396
    Device sessions

    8. test_public_chat_copy_and_paste_message_in_chat_input, id: 5317
    Device sessions

    9. test_public_chat_fetch_more_history, id: 5675
    Device sessions

    10. test_browser_offline, id: 702075
    Device sessions

    11. test_browser_invalid_url, id: 702074
    Device sessions

    Class TestOneToOneChatMultipleSharedDevices:

    1. test_1_1_chat_text_message_edit_delete_push_disappear, id: 695843
    Device sessions

    2. test_1_1_chat_message_reaction, id: 6315
    Device sessions

    3. test_1_1_chat_emoji_send_reply_and_open_link, id: 5373
    Device sessions

    4. test_1_1_chat_image_send_save_reply, id: 6305
    Device sessions

    5. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 5310
    Device sessions

    6. test_1_1_chat_text_message_with_push, id: 6316
    Device sessions

    7. test_1_1_chat_non_latin_message_to_newly_added_contact_with_profile_picture_on_different_networks, id: 5315
    Device sessions

    8. test_1_1_chat_delete_via_delete_button_relogin, id: 5387
    Device sessions

    9. test_1_1_chat_push_emoji, id: 6283
    Device sessions

    Class TestPairingSyncMultipleDevicesMerged:

    1. test_pairing_sync_clear_history, id: 702394
    Device sessions

    2. test_pairing_sync_contacts_block_unblock, id: 702196
    Device sessions

    3. test_pairing_sync_initial_profile_picture, id: 702392
    Device sessions

    4. test_pairing_sync_initial_bookmarks, id: 702393
    Device sessions

    5. test_pairing_sync_initial_contacts_blocked_users, id: 702194
    Device sessions

    6. test_pairing_sync_1_1_chat_message, id: 702198
    Device sessions

    7. test_pairing_sync_public_chat_add_remove, id: 702199
    Device sessions

    8. test_pairing_sync_initial_public_chats, id: 702195
    Device sessions

    9. test_pairing_sync_contacts_add_remove_set_nickname_ens, id: 702197
    Device sessions

    Class TestOnboardingOneDeviceMerged:

    1. test_onboarding_add_new_multiaccount_username_by_position_pass_validation, id: 700747
    Device sessions

    2. test_onboarding_home_initial_popup, id: 700742
    Device sessions

    3. test_onboarding_share_contact_address, id: 700743
    Device sessions

    4. test_onboarding_backup_seed_phrase_restore_same_login_logcat, id: 700745
    Device sessions

    5. test_onboarding_cant_sign_in_with_invalid_password_logcat, id: 700746
    Device sessions

    Class TestWalletManagementDeviceMerged:

    1. test_wallet_fetching_balance_after_offline_insufficient_funds_errors, id: 700766
    Device sessions

    2. test_wallet_add_account_generate_new, id: 700759
    Device sessions

    3. test_wallet_tx_history_copy_tx_hash_on_cellular, id: 700756
    Device sessions

    Class TestEnsStickersMultipleDevicesMerged:

    1. test_ens_command_send_tx_eth_1_1_chat, id: 702153
    Device sessions

    2. test_ens_mention_push_highlighted_public_chat, id: 702156
    Device sessions

    3. test_ens_mention_nickname_1_1_chat, id: 702155
    Device sessions

    4. test_ens_purchased_in_profile, id: 702152
    Device sessions

    Class TestContactBlockMigrateKeycardMultipleSharedDevices:

    1. test_contact_block_unblock_public_chat_offline, id: 702176
    Device sessions

    2. test_contact_add_remove_mention_default_username_nickname_public_chat, id: 702175
    Device sessions

    3. test_keycard_command_send_tx_eth_1_1_chat, id: 702186
    Device sessions

    4. test_restore_account_migrate_multiaccount_to_keycard_db_saved, id: 702177
    Device sessions

    5. test_cellular_settings_on_off_public_chat_fetching_history, id: 702188
    Device sessions

    Class TestKeycardTxOneDeviceMerged:

    1. test_keycard_relogin_after_restore, id: 700768
    Device sessions

    2. test_keycard_send_tx_sign_message_request_stt_testdapp, id: 700769
    Device sessions

    3. test_keycard_create_account_unlock_same_seed, id: 5689
    Device sessions

    4. test_keycard_send_tx_eth, id: 700767
    Device sessions

    5. test_keycard_wallet_recover_pairing_check_balance_after_offline_tx_history, id: 700770
    Device sessions

    Class TestGroupChatMultipleDeviceMerged:

    1. test_group_chat_push_system_messages_when_invited, id: 3994
    Device sessions

    2. test_group_chat_highligted, id: 5756
    Device sessions

    3. test_group_chat_join_send_text_messages_push, id: 700731
    Device sessions

    4. test_group_chat_offline_pn, id: 3998
    Device sessions

    5. test_group_chat_add_new_member_activity_centre, id: 700732
    Device sessions

    6. test_group_chat_leave_relogin, id: 3997
    Device sessions

    Class TestCommandsMultipleDevicesMerged:

    1. test_1_1_chat_command_decline_eth_push_changing_state, id: 6265
    Device sessions

    2. test_1_1_chat_command_send_tx_eth_outgoing_tx_push, id: 6253
    Device sessions

    Class TestRestoreOneDeviceMerged:

    1. test_restore_set_up_wallet_sign_phrase, id: 700749
    Device sessions

    2. test_restore_account_migrate_multiaccount_to_keycard_no_db_saved_add_wallet_send_tx, id: 702189
    Device sessions

    3. test_restore_seed_phrase_field_validation, id: 700750
    Device sessions

    4. test_restore_uppercase_whitespaces_seed_phrase_special_char_passw_logcat, id: 700748
    Device sessions

    @J-Son89 J-Son89 force-pushed the feat/token-tag-component branch 2 times, most recently from 17588f7 to 684e74c Compare August 25, 2022 11:22
    @J-Son89 J-Son89 force-pushed the feat/token-tag-component branch from 684e74c to a4b20b3 Compare August 25, 2022 13:06
    @J-Son89 J-Son89 merged commit 47a31ae into status-im:develop Aug 25, 2022
    Parveshdhull pushed a commit to Parveshdhull/status-mobile that referenced this pull request Aug 28, 2022
    ibrkhalil pushed a commit that referenced this pull request Sep 5, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    No open projects
    Archived in project
    Development

    Successfully merging this pull request may close these issues.

    UI Component - Token tag
    6 participants