Fix list testIDs
This commit is contained in:
@@ -25,7 +25,8 @@ export const ListActions = ({
|
|||||||
|
|
||||||
let buttons = [
|
let buttons = [
|
||||||
<Button
|
<Button
|
||||||
key="subscribeButton"
|
key="subscribeListBtn"
|
||||||
|
testID={muted ? 'unsubscribeListBtn' : 'subscribeListBtn'}
|
||||||
type={muted ? 'inverted' : 'primary'}
|
type={muted ? 'inverted' : 'primary'}
|
||||||
label={muted ? 'Unsubscribe' : 'Subscribe & Mute'}
|
label={muted ? 'Unsubscribe' : 'Subscribe & Mute'}
|
||||||
accessibilityLabel={muted ? 'Unsubscribe' : 'Subscribe and mute'}
|
accessibilityLabel={muted ? 'Unsubscribe' : 'Subscribe and mute'}
|
||||||
@@ -34,7 +35,8 @@ export const ListActions = ({
|
|||||||
/>,
|
/>,
|
||||||
isOwner && (
|
isOwner && (
|
||||||
<Button
|
<Button
|
||||||
key="editListButton"
|
key="editListBtn"
|
||||||
|
testID="editListBtn"
|
||||||
type="default"
|
type="default"
|
||||||
label="Edit List"
|
label="Edit List"
|
||||||
accessibilityLabel="Edit list"
|
accessibilityLabel="Edit list"
|
||||||
@@ -44,9 +46,9 @@ export const ListActions = ({
|
|||||||
),
|
),
|
||||||
isOwner && (
|
isOwner && (
|
||||||
<Button
|
<Button
|
||||||
key="deleteListButton"
|
key="deleteListBtn"
|
||||||
type="default"
|
|
||||||
testID="deleteListBtn"
|
testID="deleteListBtn"
|
||||||
|
type="default"
|
||||||
accessibilityLabel="Delete list"
|
accessibilityLabel="Delete list"
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
onPress={onPressDeleteList}>
|
onPress={onPressDeleteList}>
|
||||||
@@ -54,9 +56,9 @@ export const ListActions = ({
|
|||||||
</Button>
|
</Button>
|
||||||
),
|
),
|
||||||
<Button
|
<Button
|
||||||
key="shareListButton"
|
key="shareListBtn"
|
||||||
type="default"
|
|
||||||
testID="shareListBtn"
|
testID="shareListBtn"
|
||||||
|
type="default"
|
||||||
accessibilityLabel="Share list"
|
accessibilityLabel="Share list"
|
||||||
accessibilityHint=""
|
accessibilityHint=""
|
||||||
onPress={onPressShareList}>
|
onPress={onPressShareList}>
|
||||||
|
|||||||
Reference in New Issue
Block a user