@bigbinary/neeto-playwright-commons 1.9.5 → 1.9.7

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/index.cjs.js CHANGED
@@ -341,7 +341,7 @@ const COMMON_SELECTORS = {
341
341
  subheader: "subheader",
342
342
  settingsLink: "Settings",
343
343
  ticketFieldTextInput: (label) => `${hyphenize(label)}-text-input`,
344
- appSwitcherButton: "app-switcher-button",
344
+ appSwitcherButton: "product-switcher-button",
345
345
  appSwitcherWrapper: "switcher-wrapper",
346
346
  tableSpinner: ".ant-spin",
347
347
  pageLoader: "neeto-molecules-pageloader",
@@ -2766,6 +2766,10 @@ class CustomCommands {
2766
2766
  await uploadFile;
2767
2767
  await test$1.expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.uploadedImage)).toHaveAttribute("src", new RegExp(imageName), { timeout: 20000 });
2768
2768
  };
2769
+ this.verifyTooltip = async ({ triggerElement, content, }) => {
2770
+ await triggerElement.hover();
2771
+ await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.tooltip)).toContainText(content);
2772
+ };
2769
2773
  this.page = page;
2770
2774
  this.responses = [];
2771
2775
  this.request = request;