Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion test/helpers/widgets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { elementById, elementByText, sleep, swipeFullScreen, tap } from './actions';

export type WidgetId = 'price' | 'blocks' | 'news' | 'facts' | 'suggestions' | 'calculator';
export type WidgetId =
| 'price'
| 'blocks'
| 'news'
| 'facts'
| 'weather'
| 'suggestions'
| 'calculator';

type WidgetMetadata = {
listItemId: string;
Expand Down Expand Up @@ -34,6 +41,12 @@ const WIDGETS: Record<WidgetId, WidgetMetadata> = {
homeId: () => (driver.isIOS ? 'FactsWidget' : undefined),
hasSettings: () => driver.isIOS,
},
weather: {
listItemId: 'WidgetListItem-weather',
actionName: 'Bitcoin Weather',
homeId: () => (driver.isIOS ? 'WeatherWidget' : undefined),
hasSettings: () => true,
},
suggestions: {
listItemId: 'WidgetListItem-suggestions',
actionName: 'Bitkit Suggestions',
Expand Down
2 changes: 1 addition & 1 deletion test/specs/widgets.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('@widgets - Widgets', () => {
});

ciIt('@widgets_2 - Can add/remove redesigned content widgets', async () => {
const contentWidgets: WidgetId[] = ['blocks', 'news', 'facts'];
const contentWidgets: WidgetId[] = ['blocks', 'news', 'facts', 'weather'];

await deleteAllDefaultWidgets();

Expand Down