Skip to content

Commit a34cef6

Browse files
authored
Merge pull request #151 from synonymdev/feat/weather-v61
Feat/weather v61
2 parents 981a538 + 23b7442 commit a34cef6

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

test/helpers/widgets.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import { elementById, elementByText, sleep, swipeFullScreen, tap } from './actions';
22

3-
export type WidgetId = 'price' | 'blocks' | 'news' | 'facts' | 'suggestions' | 'calculator';
3+
export type WidgetId =
4+
| 'price'
5+
| 'blocks'
6+
| 'news'
7+
| 'facts'
8+
| 'weather'
9+
| 'suggestions'
10+
| 'calculator';
411

512
type WidgetMetadata = {
613
listItemId: string;
@@ -34,6 +41,12 @@ const WIDGETS: Record<WidgetId, WidgetMetadata> = {
3441
homeId: () => (driver.isIOS ? 'FactsWidget' : undefined),
3542
hasSettings: () => driver.isIOS,
3643
},
44+
weather: {
45+
listItemId: 'WidgetListItem-weather',
46+
actionName: 'Bitcoin Weather',
47+
homeId: () => (driver.isIOS ? 'WeatherWidget' : undefined),
48+
hasSettings: () => true,
49+
},
3750
suggestions: {
3851
listItemId: 'WidgetListItem-suggestions',
3952
actionName: 'Bitkit Suggestions',

test/specs/widgets.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('@widgets - Widgets', () => {
8484
});
8585

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

8989
await deleteAllDefaultWidgets();
9090

0 commit comments

Comments
 (0)