Add E2E testing infrastructure with WebdriverIO + Appium
Set up E2E test framework for Android using WebdriverIO, Appium, and UiAutomator2. Add testID props to key components (AuthButton, BaseButton, ChatBubble, CustomTextInput, ProposedEventCard) and apply testIDs to login screen, chat screen, tab bar, and settings. Include initial tests for app launch detection and login flow validation. Update CLAUDE.md with E2E docs.
This commit is contained in:
@@ -45,6 +45,7 @@ const LoginScreen = () => {
|
||||
<BaseBackground>
|
||||
<View className="flex-1 justify-center items-center p-8">
|
||||
<Text
|
||||
testID="login-title"
|
||||
className="text-3xl font-bold mb-8"
|
||||
style={{ color: theme.textPrimary }}
|
||||
>
|
||||
@@ -53,6 +54,7 @@ const LoginScreen = () => {
|
||||
|
||||
{error && (
|
||||
<Text
|
||||
testID="login-error-text"
|
||||
className="mb-4 text-center"
|
||||
style={{ color: theme.rejectButton }}
|
||||
>
|
||||
@@ -61,6 +63,7 @@ const LoginScreen = () => {
|
||||
)}
|
||||
|
||||
<CustomTextInput
|
||||
testID="login-identifier-input"
|
||||
placeholder="E-Mail oder Benutzername"
|
||||
placeholderTextColor={theme.textMuted}
|
||||
text={identifier}
|
||||
@@ -70,6 +73,7 @@ const LoginScreen = () => {
|
||||
/>
|
||||
|
||||
<CustomTextInput
|
||||
testID="login-password-input"
|
||||
placeholder="Passwort"
|
||||
placeholderTextColor={theme.textMuted}
|
||||
text={password}
|
||||
@@ -79,6 +83,7 @@ const LoginScreen = () => {
|
||||
/>
|
||||
|
||||
<AuthButton
|
||||
testID="login-button"
|
||||
title="Anmelden"
|
||||
onPress={handleLogin}
|
||||
isLoading={isLoading}
|
||||
|
||||
Reference in New Issue
Block a user