test(mobile): basic e2e tests (#8031)

fix AF-1289

1. tested on 'webkit'
2. a few baseline test cases
This commit is contained in:
pengx17
2024-09-02 10:20:23 +00:00
parent 41d35fdafd
commit 61e37d8873
22 changed files with 320 additions and 16 deletions
@@ -78,7 +78,7 @@ export const PageHeaderMenuButton = ({ docId }: PageMenuProps) => {
<>
<MobileMenuItem
prefixIcon={currentMode === 'page' ? <EdgelessIcon /> : <PageIcon />}
data-testid="editor-option-menu-edgeless"
data-testid="editor-option-menu-mode-switch"
onSelect={handleSwitchMode}
>
{t['Convert to ']()}
@@ -133,7 +133,7 @@ export const PageHeaderMenuButton = ({ docId }: PageMenuProps) => {
>
<IconButton
size={24}
data-testid="header-dropDownButton"
data-testid="detail-page-header-more-button"
className={styles.iconButton}
>
<MoreHorizontalIcon />
@@ -133,7 +133,7 @@ export const Component = () => {
return (
<>
<div className={styles.searchHeader}>
<div className={styles.searchHeader} data-testid="search-header">
<SearchInput
debounce={300}
autoFocus={!searchInput}