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:
30
apps/client/e2e/helpers/selectors.ts
Normal file
30
apps/client/e2e/helpers/selectors.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* All testID strings used in the CalChat app.
|
||||
* Appium finds them via accessibility id selector: `~testId`
|
||||
*/
|
||||
export const TestIDs = {
|
||||
// Login screen
|
||||
LOGIN_TITLE: "login-title",
|
||||
LOGIN_ERROR_TEXT: "login-error-text",
|
||||
LOGIN_IDENTIFIER_INPUT: "login-identifier-input",
|
||||
LOGIN_PASSWORD_INPUT: "login-password-input",
|
||||
LOGIN_BUTTON: "login-button",
|
||||
|
||||
// Tab navigation
|
||||
TAB_CHAT: "tab-chat",
|
||||
TAB_CALENDAR: "tab-calendar",
|
||||
TAB_SETTINGS: "tab-settings",
|
||||
|
||||
// Chat screen
|
||||
CHAT_MESSAGE_INPUT: "chat-message-input",
|
||||
CHAT_SEND_BUTTON: "chat-send-button",
|
||||
CHAT_BUBBLE_LEFT: "chat-bubble-left",
|
||||
CHAT_BUBBLE_RIGHT: "chat-bubble-right",
|
||||
|
||||
// Settings screen
|
||||
SETTINGS_LOGOUT_BUTTON: "settings-logout-button",
|
||||
|
||||
// Event proposal
|
||||
EVENT_ACCEPT_BUTTON: "event-accept-button",
|
||||
EVENT_REJECT_BUTTON: "event-reject-button",
|
||||
} as const;
|
||||
Reference in New Issue
Block a user