-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WRR-14027: Added UI test when PageViews' autoFocus is 'none'
Enact-DCO-1.0-Signed-off-by: Hyelyn Kim (myelyn.kim@lge.com)
- Loading branch information
Showing
3 changed files
with
91 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import {BasicArranger} from '../../../../internal/Panels'; | ||
import Item from '../../../../Item'; | ||
import {PageViews} from '../../../../PageViews'; | ||
import Panels, {Panel, Header} from '../../../../Panels'; | ||
import ThemeDecorator from '../../../../ThemeDecorator'; | ||
import spotlight from '@enact/spotlight'; | ||
|
||
// NOTE: Forcing pointer mode off so we can be sure that regardless of webOS pointer mode the app | ||
// runs the same way | ||
spotlight.setPointerMode(false); | ||
|
||
const PageViewsWithAutoFocus = props => ( | ||
<Panels {...props}> | ||
<Panel autoFocus="none"> | ||
<Header title="PageViews with autoFocus" /> | ||
<PageViews autoFocus="none" arranger={BasicArranger} pageIndicatorType="dot"> | ||
<PageViews.Page id="PageViewsPage1" aria-label="This is a description for page 1"> | ||
<div style={{padding: '24px', width: '50%'}}> | ||
<Item id="PageViewsItem1">Item 1</Item> | ||
<Item>Item 2</Item> | ||
</div> | ||
</PageViews.Page> | ||
<PageViews.Page id="PageViewsPage2" aria-label="This is a description for page 2"> | ||
<div style={{padding: '24px', width: '50%'}}> | ||
<Item id="PageViewsItem3">Item 3</Item> | ||
<Item>Item 4</Item> | ||
</div> | ||
</PageViews.Page> | ||
</PageViews> | ||
</Panel> | ||
</Panels> | ||
); | ||
|
||
export default ThemeDecorator({noAutoFocus: true}, PageViewsWithAutoFocus); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters