提交 8f3a24ae 编写于 作者: D DCloud_LXH

fix(harmony): web-view test

上级 04c5d746
...@@ -5,6 +5,7 @@ describe('component-native-web-view', () => { ...@@ -5,6 +5,7 @@ describe('component-native-web-view', () => {
const isIOS = platformInfo.startsWith('ios') const isIOS = platformInfo.startsWith('ios')
const isMP = platformInfo.startsWith('mp') const isMP = platformInfo.startsWith('mp')
const isWeb = platformInfo.startsWith('web') const isWeb = platformInfo.startsWith('web')
const isHarmony = platformInfo.startsWith('harmony')
if (isWeb || process.env.UNI_AUTOMATOR_APP_WEBVIEW) { if (isWeb || process.env.UNI_AUTOMATOR_APP_WEBVIEW) {
it('web', async () => { it('web', async () => {
...@@ -75,7 +76,7 @@ describe('component-native-web-view', () => { ...@@ -75,7 +76,7 @@ describe('component-native-web-view', () => {
y: windowInfo.safeAreaInsets.top + 44 + 10 y: windowInfo.safeAreaInsets.top + 44 + 10
}); });
await page.waitFor(500); await page.waitFor(500);
if (!isIOS) { if (!isIOS && !isHarmony) {
expect(await page.data('isTouchEnable')).toBe(false); expect(await page.data('isTouchEnable')).toBe(false);
} }
await page.setData({ await page.setData({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册