fix mobile ci (#2045)

* Update TabNavigator.tsx

* test ids hmm

* Update add-tag.yml
This commit is contained in:
ameer2468 2024-02-04 00:26:33 +03:00 committed by GitHub
parent 2320716523
commit d475153544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 15 deletions

View file

@ -30,6 +30,7 @@ export default function TabNavigator() {
icon: React.ReactNode;
label: string;
labelStyle: Style;
testID: string;
}[] = [
{
name: 'OverviewStack',
@ -44,7 +45,8 @@ export default function TabNavigator() {
/>
),
label: 'Overview',
labelStyle: tw`text-[10px] font-semibold`
labelStyle: tw`text-[10px] font-semibold`,
testID: 'overview-tab'
},
{
name: 'NetworkStack',
@ -59,7 +61,8 @@ export default function TabNavigator() {
/>
),
label: 'Network',
labelStyle: tw`text-[10px] font-semibold`
labelStyle: tw`text-[10px] font-semibold`,
testID: 'network-tab'
},
{
name: 'BrowseStack',
@ -74,7 +77,8 @@ export default function TabNavigator() {
/>
),
label: 'Browse',
labelStyle: tw`text-[10px] font-semibold`
labelStyle: tw`text-[10px] font-semibold`,
testID: 'browse-tab'
},
{
name: 'SettingsStack',
@ -89,7 +93,8 @@ export default function TabNavigator() {
/>
),
label: 'Settings',
labelStyle: tw`text-[10px] font-semibold`
labelStyle: tw`text-[10px] font-semibold`,
testID: 'settings-tab'
}
];
return (
@ -121,7 +126,8 @@ export default function TabNavigator() {
tabBarLabelStyle: screen.labelStyle,
tabBarIcon: () => (
<TouchableWithoutFeedback>{screen.icon}</TouchableWithoutFeedback>
)
),
tabBarTestID: screen.testID
}}
listeners={() => ({
tabPress: () => {

View file

@ -1,13 +1,3 @@
appId: com.spacedrive.app
---
- launchApp
- tapOn:
id: 'browse-tab'
- tapOn:
id: 'add-tag'
- tapOn:
id: 'create-tag-name'
- inputText: 'MyTag'
- tapOn: Create
- assertVisible:
id: 'browse-tag'