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
4 changes: 2 additions & 2 deletions test/helpers/widgets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const WIDGETS: Record<WidgetId, WidgetMetadata> = {
listItemId: 'WidgetListItem-facts',
actionName: 'Bitcoin Facts',
homeId: () => (driver.isIOS ? 'FactsWidget' : undefined),
hasSettings: () => driver.isIOS,
hasSettings: () => false,
},
weather: {
listItemId: 'WidgetListItem-weather',
Expand All @@ -55,7 +55,7 @@ const WIDGETS: Record<WidgetId, WidgetMetadata> = {
},
calculator: {
listItemId: 'WidgetListItem-calculator',
actionName: 'Calculator',
actionName: 'Bitcoin Calculator',
homeId: () => 'CalculatorWidget',
hasSettings: () => false,
},
Expand Down
12 changes: 1 addition & 11 deletions test/specs/widgets.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,13 @@ describe('@widgets - Widgets', () => {
});

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

await deleteAllDefaultWidgets();

for (const widget of contentWidgets) {
await addWidget(widget);
await expectWidgetSavedInEditList(widget);

if (widget === 'facts') {
await openSavedWidgetPreview(widget);
await elementById('WidgetEdit').waitForDisplayed({
reverse: driver.isAndroid,
timeout: 5000,
});
await tap('NavigationBack');
}

await deleteWidget(widget);
}
});
Expand Down