@winning-test/component 0.0.92 → 0.0.93

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.92",
3
+ "version": "0.0.93",
4
4
  "description": "",
5
5
  "main": "",
6
6
  "scripts": {
@@ -243,13 +243,13 @@ class Page extends require("@winning-test/autotest-webui").Page {
243
243
  await that.blockComponent(xpath).click();
244
244
  await that.loading();
245
245
  if (thirdItem) {
246
- xpath = `//*[@class='menuList']//*[text()='${secondItem}']/ancestor::div//*[text()='${thirdItem}']`;
246
+ xpath = `//*[@class='menuList']//*[contains(text(),'${secondItem}')]/ancestor::div//*[text()='${thirdItem}']`;
247
247
  await this.browser.waitUntilElementBeVisible(xpath);
248
248
  await that.blockComponent(xpath).click();
249
249
  await that.loading();
250
250
  }
251
251
  if (!thirdItem) {
252
- xpath = `//*[@class='menuList']//*[text()='${secondItem}']`;
252
+ xpath = `//*[@class='menuList']//*[contains(text(),'${secondItem}')]`;
253
253
  await that.blockComponent(xpath).click();
254
254
  await that.loading();
255
255
  }