@winning-test/component 0.0.76 → 0.0.77

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winning-test/component",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "scripts": {
@@ -157,7 +157,7 @@ class Page extends require("@winning-test/autotest-webui").Page {
157
157
  */
158
158
  async loading() {
159
159
  try {
160
- const xpath = "//*[contains(text(),'加载中')][not (ancestor-or-self::*[contains(@style,'display: none')])]";
160
+ const xpath = "//*[contains(text(),'加载中') or @class='el-loading-mask'][not (ancestor-or-self::*[contains(@style,'display: none')])]";
161
161
  if (await this.browser.isDisplayed(xpath, 1000)) {
162
162
  await this.browser.waitUntilElementBeNotVisible(xpath);
163
163
  }