From cc8a2ef40fbddc22ca2f10a87f3bb81e5720d9f9 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Fri, 6 Sep 2024 11:21:54 +0800 Subject: [PATCH] =?UTF-8?q?test(global=20events):=20=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E6=A8=AA=E5=B1=8F=E6=A8=A1=E5=BC=8F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/global-events/global-events.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pages/component/global-events/global-events.test.js b/pages/component/global-events/global-events.test.js index d63bcf37..51a333c0 100644 --- a/pages/component/global-events/global-events.test.js +++ b/pages/component/global-events/global-events.test.js @@ -1,6 +1,13 @@ const PAGE_PATH = '/pages/component/global-events/global-events' describe('event trigger', () => { + if (process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') { + it('跳过横屏模式', () => { + expect(1).toBe(1) + }) + return + } + const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase() const isAndroid = platformInfo.startsWith('android') const isIos = platformInfo.startsWith('ios') -- GitLab