Skip to content

Commit c525f4e

Browse files
committed
[LWM] ✅ force no cache
1 parent 23d802d commit c525f4e

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

.github/workflows/test-mobile-e2e-reusable.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ jobs:
326326
ref: ${{ inputs.ref || github.sha }}
327327
macos-specificity-runner-label: "general-pool"
328328
disable-turbo-cache: false
329-
build-ios-js: ${{ needs.determine-builds.outputs.ios_js_exists == 'false' }}
329+
build-ios-js: true
330330
build-ios-native: ${{ needs.determine-builds.outputs.ios_native_exists == 'false' }}
331331
ios-native-cache-key: ${{ needs.determine-builds.outputs.ios_native_key }}
332332
ios-js-cache-key: ${{ needs.determine-builds.outputs.ios_js_key }}
@@ -341,7 +341,7 @@ jobs:
341341
with:
342342
ref: ${{ inputs.ref || github.sha }}
343343
disable-turbo-cache: false
344-
build-android-js: ${{ needs.determine-builds.outputs.android_js_exists == 'false' }}
344+
build-android-js: true
345345
build-android-native: ${{ needs.determine-builds.outputs.android_native_exists == 'false' }}
346346
android-native-cache-key: ${{ needs.determine-builds.outputs.android_native_key }}
347347
android-js-cache-key: ${{ needs.determine-builds.outputs.android_js_key }}
@@ -498,7 +498,7 @@ jobs:
498498

499499
- name: Copy JS build
500500
run: |
501-
cp apps/ledger-live-mobile/main.jsbundle ${{ env.IOS_JSBUNDLE_PATH }}
501+
cp apps/ledger-live-mobile/main.jsbundle ${{ env.IOS_JSBUNDLE_PATH }}
502502
cp apps/ledger-live-mobile/main.jsbundle ${{ env.IOS_NATIVE_PATH }}/main.jsbundle
503503
504504
- name: Build dependencies

apps/ledger-live-mobile/src/mvvm/components/FearAndGreed/FearAndGreedView.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useCallback, useState } from "react";
1+
import React from "react";
22
import { Text } from "@ledgerhq/lumen-ui-rnative";
33
import { useTranslation } from "~/context/Locale";
44
import { BottomSheetView } from "@gorhom/bottom-sheet";
@@ -17,24 +17,15 @@ export const FearAndGreedView = ({
1717
}: FearAndGreedViewProps) => {
1818
const { t } = useTranslation();
1919
const { bottom: bottomInset } = useSafeAreaInsets();
20-
const [debugMode, setDebugMode] = useState("not called");
21-
22-
const onClose = useCallback(() => {
23-
setDebugMode("it hasbeen called");
24-
handleCloseDrawer();
25-
}, [handleCloseDrawer]);
2620

2721
if (!data || isError) return null;
2822

2923
return (
3024
<>
3125
<FearAndGreedCard data={data} onPress={handleOpenDrawer} />
32-
<Text typography="body1" lx={{ color: "warning" }}>
33-
{debugMode}
34-
</Text>
3526
<QueuedDrawerGorhom
3627
isRequestingToBeOpened={isDrawerOpen}
37-
onClose={onClose}
28+
onClose={handleCloseDrawer}
3829
enableDynamicSizing
3930
>
4031
<BottomSheetView style={{ paddingBottom: bottomInset + 24, paddingTop: 32 }}>

e2e/mobile/helpers/elementHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PageScroller } from "./pageScroller";
77
import { checkForErrorElement } from "./errorHelpers";
88
import { sanitizeError } from "@ledgerhq/live-common/e2e/index";
99

10-
const DEFAULT_ANIMATION_DELAY = 500;
10+
const DEFAULT_ANIMATION_DELAY = 1500;
1111

1212
interface IndexedWebElement extends WebElement {
1313
atIndex(index: number): WebElement;

e2e/mobile/page/wallet/portfolio.page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ export default class PortfolioPage {
291291

292292
@Step("Tap on market banner tile")
293293
async tapMarketBannerTile(index: number) {
294+
await detoxExpect(getElementById(`${this.marketBannerTileBase}${index}`)).toBeVisible();
294295
await tapById(`${this.marketBannerTileBase}${index}`);
295296
}
296297

0 commit comments

Comments
 (0)