@winning-test/component 0.0.96 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -146,14 +146,14 @@ class BlockComponent extends require("./Component") {
|
|
|
146
146
|
* @param {String} label 标签
|
|
147
147
|
* @returns 选择器组件
|
|
148
148
|
*/
|
|
149
|
-
selectComponent(placeholder, label) {
|
|
149
|
+
selectComponent(placeholder, label, forceMulti) {
|
|
150
150
|
let that = this;
|
|
151
151
|
class SelectComponent extends require("./SelectComponent") {
|
|
152
152
|
_createRootXpath() {
|
|
153
153
|
return that.getXpath();
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
return new SelectComponent(this.browser, placeholder, label);
|
|
156
|
+
return new SelectComponent(this.browser, placeholder, label, forceMulti);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
@@ -219,14 +219,14 @@ class BlockComponent extends require("./Component") {
|
|
|
219
219
|
* 获取顶部菜单组件
|
|
220
220
|
* @returns 顶部菜单组件
|
|
221
221
|
*/
|
|
222
|
-
topMenuComponent() {
|
|
222
|
+
topMenuComponent(firstItem) {
|
|
223
223
|
let that = this;
|
|
224
224
|
class TopMenuComponent extends require("./TopMenuComponent") {
|
|
225
225
|
_createRootXpath() {
|
|
226
226
|
return that.getXpath();
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
return new TopMenuComponent(this.browser);
|
|
229
|
+
return new TopMenuComponent(this.browser, firstItem);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
}
|
package/rpes5.6/page/Page.js
CHANGED
|
@@ -188,6 +188,9 @@ class Page extends require("@winning-test/autotest-webui").Page {
|
|
|
188
188
|
async select(menuItem) {
|
|
189
189
|
super.select(menuItem);
|
|
190
190
|
await that.blockComponent(`//div[@role="tab"][text()='${menuItem}']`).waitUntilBeVisible();
|
|
191
|
+
// 页面加载
|
|
192
|
+
await that.loading();
|
|
193
|
+
// 数据加载
|
|
191
194
|
await that.loading();
|
|
192
195
|
}
|
|
193
196
|
|