Skip to content
Merged
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
3 changes: 3 additions & 0 deletions e2e/Overlay.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,15 @@ describe('Overlay', () => {

it.e2e(':android: should show banner overlay and not block the screen', async () => {
const snapshottedImagePath = './e2e/assets/overlay_banner_padding.png';

Android.setDemoMode();

let expected = await device.takeScreenshot('without_banner');
await elementById(TestIDs.SHOW_BANNER_OVERLAY).tap();
await expect(elementById(TestIDs.BANNER_OVERLAY)).toBeVisible();
const actual = await device.takeScreenshot('with_banner');
expectImagesToBeNotEqual(expected, actual)

await elementById(TestIDs.SET_LAYOUT_BOTTOM_INSETS).tap();
expected = await device.takeScreenshot('with_banner');
expectImagesToBeEqual(expected, snapshottedImagePath)
Expand Down
Binary file modified e2e/assets/overlay_banner_padding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 2 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,10 @@
"os": "15.5"
}
},
"genymotion.emulator.name": {
"type": "android.genycloud",
"device": {
"recipeUUID": "9baf12f9-a645-4ffa-a688-0e92584d6194"
}
},
"emulator": {
"type": "android.emulator",
"device": {
"avdName": "Pixel_3a_API_34"
"avdName": "Pixel_3a_API_35"
}
}
},
Expand Down Expand Up @@ -246,10 +240,6 @@
"android.emu.release": {
"app": "android.release",
"device": "emulator"
},
"android.genycloud.release": {
"app": "android.release",
"device": "genymotion.emulator.name"
}
}
},
Expand All @@ -258,4 +248,4 @@
"type": "all",
"jsSrcsDir": "./lib/src"
}
}
}
1 change: 1 addition & 0 deletions playground/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">@color/backgroundColor</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>
6 changes: 3 additions & 3 deletions scripts/test-e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const CI = includes(process.argv, '--ci');
run();

function run() {
const prefix = android ? (CI ? `android.genycloud` : `android.emu`) : `ios.sim`;
const suffix = release ? `release` : `debug`;
const prefix = android ? 'android.emu' : 'ios.sim';
const suffix = release ? 'release' : 'debug';
const configuration = `${prefix}.${suffix}`;
const headless$ = android ? (headless ? `--headless` : ``) : ``;
const headless$ = android ? (headless ? '--headless' : '') : '';
const workers = multi ? 3 : 1;
const loglevel = verbose ? '--loglevel verbose' : '';

Expand Down