You need to sign in or sign up before continuing.
提交 f8045ebc 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新web-view自动化测试用例

上级 36ac1e8c
......@@ -5,7 +5,8 @@ describe('component-native-web-view', () => {
const isIOS = platformInfo.startsWith('ios')
const isMP = platformInfo.startsWith('mp')
const isWeb = platformInfo.startsWith('web')
const isHarmony = platformInfo.startsWith('harmony')
const isHarmony = platformInfo.startsWith('harmony')
const isAndroid = platformInfo.startsWith('android')
if (isWeb || process.env.UNI_AUTOMATOR_APP_WEBVIEW) {
it('web', async () => {
......@@ -124,6 +125,10 @@ describe('component-native-web-view', () => {
});
it('test event contentheightchange', async () => {
if (!isAndroid && !isIOS) {
expect(1).toBe(1);
return;
}
expect(await page.callMethod('getContentHeight')).toBeGreaterThan(0);
start = Date.now();
await page.waitFor(async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册