提交 7aa368fe 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

perf: 放开 getElementById 入口,并优化测试

上级 d7c01fab
...@@ -3,12 +3,6 @@ const PAGE_PATH = ...@@ -3,12 +3,6 @@ const PAGE_PATH =
let page; let page;
describe("getElementByIdForMultipleRootNode", () => { describe("getElementByIdForMultipleRootNode", () => {
if (process.env.uniTestPlatformInfo.indexOf('web') > -1) {
it('dummyTest', () => {
expect(1).toBe(1)
})
return
}
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH); page = await program.reLaunch(PAGE_PATH);
await page.waitFor('view'); await page.waitFor('view');
......
...@@ -2,12 +2,6 @@ const PAGE_PATH = "/pages/API/get-element-by-id/get-element-by-id"; ...@@ -2,12 +2,6 @@ const PAGE_PATH = "/pages/API/get-element-by-id/get-element-by-id";
let page; let page;
describe("getElementById", () => { describe("getElementById", () => {
if (process.env.uniTestPlatformInfo.indexOf('web') > -1) {
it('dummyTest', () => {
expect(1).toBe(1)
})
return
}
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH); page = await program.reLaunch(PAGE_PATH);
await page.waitFor('view'); await page.waitFor('view');
......
...@@ -144,12 +144,12 @@ ...@@ -144,12 +144,12 @@
// url: "intersection-observer", // url: "intersection-observer",
// enable: false // enable: false
// }, // },
// #ifdef APP
{ {
name: 'element元素', name: 'element元素',
url: 'get-element-by-id', url: 'get-element-by-id',
api: ["getElementById"], api: ["getElementById"],
}, },
// #ifdef APP
{ {
name: 'element draw', name: 'element draw',
url: 'element-draw', url: 'element-draw',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册