Skip to content

Commit 889bb63

Browse files
authored
Merge pull request #156 from synonymdev/feat/os-widgets
feat/os-widgets
2 parents 769bd74 + cd18d04 commit 889bb63

3 files changed

Lines changed: 6 additions & 19 deletions

File tree

test/helpers/widgets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const WIDGETS: Record<WidgetId, WidgetMetadata> = {
3939
listItemId: 'WidgetListItem-facts',
4040
actionName: 'Bitcoin Facts',
4141
homeId: () => (driver.isIOS ? 'FactsWidget' : undefined),
42-
hasSettings: () => driver.isIOS,
42+
hasSettings: () => false,
4343
},
4444
weather: {
4545
listItemId: 'WidgetListItem-weather',
@@ -55,7 +55,7 @@ const WIDGETS: Record<WidgetId, WidgetMetadata> = {
5555
},
5656
calculator: {
5757
listItemId: 'WidgetListItem-calculator',
58-
actionName: 'Calculator',
58+
actionName: 'Bitcoin Calculator',
5959
homeId: () => 'CalculatorWidget',
6060
hasSettings: () => false,
6161
},

test/specs/pubky-profile.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { ciIt } from '../helpers/suite';
4545
// Covers scenarios from docs/pubky-profile-manual-e2e.md.
4646
// Each test reinstalls + onboards so any single test can be run in isolation
4747
// (e.g. `--mochaOpts.grep "@pubky_profile_2"` or `"@pubky_profile_3"`).
48-
describe('@pubky @pubky_profile - Pubky profile', () => {
48+
describe.skip('@pubky @pubky_profile - Pubky profile', () => {
4949
beforeEach(async () => {
5050
await reinstallApp();
5151
await completeOnboarding();

test/specs/widgets.e2e.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,14 @@ describe('@widgets - Widgets', () => {
3636
await elementByText('Default').waitForDisplayed();
3737
await openWidgetSettings('price');
3838

39-
await tap(driver.isAndroid ? 'BTC/EUR_setting_row' : 'WidgetEditField-BTC/EUR');
39+
await tap('BTC/EUR_setting_row');
4040
await sleep(1000);
4141

4242
await swipeFullScreen('up');
4343
await swipeFullScreen('up');
4444
await sleep(500);
4545

46-
await tap(driver.isAndroid ? '1W_setting_row' : 'WidgetEditField-1W');
47-
if (driver.isIOS) {
48-
await tap('WidgetEditField-showSource');
49-
}
46+
await tap('1W_setting_row');
5047
await sleep(1000);
5148

5249
await tap('WidgetEditPreview');
@@ -84,23 +81,13 @@ describe('@widgets - Widgets', () => {
8481
});
8582

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

8986
await deleteAllDefaultWidgets();
9087

9188
for (const widget of contentWidgets) {
9289
await addWidget(widget);
9390
await expectWidgetSavedInEditList(widget);
94-
95-
if (widget === 'facts') {
96-
await openSavedWidgetPreview(widget);
97-
await elementById('WidgetEdit').waitForDisplayed({
98-
reverse: driver.isAndroid,
99-
timeout: 5000,
100-
});
101-
await tap('NavigationBack');
102-
}
103-
10491
await deleteWidget(widget);
10592
}
10693
});

0 commit comments

Comments
 (0)