one accessibility-id for account name input
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
parent
cfe25b8b45
commit
696ebbf67e
|
@ -57,11 +57,12 @@
|
||||||
[react/view {:padding-bottom 28 :padding-top 10}
|
[react/view {:padding-bottom 28 :padding-top 10}
|
||||||
[react/view {:margin-horizontal 16}
|
[react/view {:margin-horizontal 16}
|
||||||
[text-input/text-input-with-label
|
[text-input/text-input-with-label
|
||||||
{:label (i18n/label :t/account-name)
|
{:label (i18n/label :t/account-name)
|
||||||
:label-style {:color colors/gray}
|
:label-style {:color colors/gray}
|
||||||
:auto-focus false
|
:auto-focus false
|
||||||
:default-value (:name account)
|
:default-value (:name account)
|
||||||
:on-change-text #(swap! new-account assoc :name %)}]
|
:accessibility-label :enter-account-name
|
||||||
|
:on-change-text #(swap! new-account assoc :name %)}]
|
||||||
[react/text {:style {:margin-top 30 :color colors/gray}} (i18n/label :t/account-color)]
|
[react/text {:style {:margin-top 30 :color colors/gray}} (i18n/label :t/account-color)]
|
||||||
[react/touchable-highlight
|
[react/touchable-highlight
|
||||||
{:on-press #(re-frame/dispatch [:show-popover
|
{:on-press #(re-frame/dispatch [:show-popover
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
{:label (i18n/label :t/account-name)
|
{:label (i18n/label :t/account-name)
|
||||||
:auto-focus false
|
:auto-focus false
|
||||||
:default-value (:name account)
|
:default-value (:name account)
|
||||||
:accessibility-label :add-account-enter-account-name
|
:accessibility-label :enter-account-name
|
||||||
:placeholder (i18n/label :t/account-name)
|
:placeholder (i18n/label :t/account-name)
|
||||||
:on-change-text #(re-frame/dispatch [:set-in [:add-account :account :name] %])}]
|
:on-change-text #(re-frame/dispatch [:set-in [:add-account :account :name] %])}]
|
||||||
[react/text {:style {:margin-top 30}} (i18n/label :t/account-color)]
|
[react/text {:style {:margin-top 30}} (i18n/label :t/account-color)]
|
||||||
|
|
|
@ -320,7 +320,7 @@ class EnterYourPasswordInput(BaseEditBox):
|
||||||
class AccountNameInput(BaseEditBox):
|
class AccountNameInput(BaseEditBox):
|
||||||
def __init__(self, driver):
|
def __init__(self, driver):
|
||||||
super(AccountNameInput, self).__init__(driver)
|
super(AccountNameInput, self).__init__(driver)
|
||||||
self.locator = self.Locator.accessibility_id('add-account-enter-account-name')
|
self.locator = self.Locator.accessibility_id('enter-account-name')
|
||||||
|
|
||||||
|
|
||||||
class AccountColorButton(BaseButton):
|
class AccountColorButton(BaseButton):
|
||||||
|
|
Loading…
Reference in New Issue