Skip to content

Commit 0b9b92f

Browse files
committedJan 6, 2025·
test: change skip method to skip only on iOS.
1 parent 30b0dac commit 0b9b92f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎detox/test/e2e/17.datePicker.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const jestExpect = require('expect').default;
22

3-
describe.skipIfNewArch('DatePicker', () => {
3+
describe.skipIfNewArchOnIOS('DatePicker', () => {
44
describe.each([
55
['ios', 'compact', 0],
66
['ios', 'inline', 1],

‎detox/test/e2e/17.picker.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe.skipIfNewArch(":ios: Picker", () => {
1+
describe.skipIfNewArchOnIOS(":ios: Picker", () => {
22
beforeEach(async () => {
33
await device.reloadReactNative();
44
await element(by.text("Picker")).tap();

‎detox/test/e2e/copilot/09.copilot.datepicker.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { default: jestExpect } = require('expect');
22

3-
describe.skipIfNewArch('DatePicker', () => {
3+
describe.skipIfNewArchOnIOS('DatePicker', () => {
44
describe.forCopilot('Copilot', () => {
55
beforeEach(async () => {
66
await copilot.perform(

‎detox/test/e2e/utils/custom-describes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ describe.skipIfCI = (title, fn) => {
66
return isCI ? describe.skip(title, fn) : describe(title, fn);
77
};
88

9-
describe.skipIfNewArch = (title, fn) => {
9+
describe.skipIfNewArchOnIOS = (title, fn) => {
1010
const isNewArch = process.env.RCT_NEW_ARCH_ENABLED === '1';
11-
if (isNewArch) {
11+
if (isNewArch && device.getPlatform() === 'ios') {
1212
console.warn('Skipping tests for new architecture, as there are issues related to the new architecture.');
1313
return describe.skip(title, fn);
1414
}

0 commit comments

Comments
 (0)
Please sign in to comment.