@bigbinary/neeto-commons-frontend 2.0.89 → 2.0.91

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/cypress-utils.js CHANGED
@@ -1194,18 +1194,15 @@ var clickOnHelpSubTab = function clickOnHelpSubTab(tabSelector, tabText) {
1194
1194
  cy.get(tabSelector).should("have.text", tabText).click();
1195
1195
  };
1196
1196
  var verifyHelpDocumentationLink = function verifyHelpDocumentationLink(_ref2) {
1197
- var url = _ref2.url,
1198
- articleTitle = _ref2.articleTitle,
1197
+ var articleTitle = _ref2.articleTitle,
1199
1198
  alias = _ref2.alias,
1200
1199
  _ref2$requestCount = _ref2.requestCount,
1201
1200
  requestCount = _ref2$requestCount === void 0 ? 3 : _ref2$requestCount;
1202
1201
  cy.get(helpIconSelectors.helpButton).click();
1203
- cy.openInSameTabOnClick({
1204
- selector: helpIconSelectors.documentationButton,
1205
- url: url,
1206
- alias: "navigateToHelpDocumentation"
1207
- });
1208
- cy.get(commonSelectors.articlePageTitle).should("have.text", articleTitle);
1202
+ cy.clickByRemoveTargetAttr(helpIconSelectors.documentationButton);
1203
+ cy.get(commonSelectors.articlePageTitle, {
1204
+ timeout: 10000
1205
+ }).should("have.text", articleTitle);
1209
1206
  cy.interceptApi(alias, requestCount);
1210
1207
  cy.go("back");
1211
1208
  cy.waitForMultipleRequest("@".concat(alias), requestCount);