package.cjs.cypress-utils.constants.selectors.common.js.map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
{"version":3,"file":"common.js","names":["_common","require","commonSelectors","exports","alertTitle","dataCy","alertModalMessage","alertModalSubmitButton","checkbox","checkboxLabel","dropdownContainer","dropdownIcon","heading","paneBody","paneHeader","profileSidebar","selectOption","label","concat","hyphenize","toastMessage","toastCloseButton","windowAlert","body","toastIcon","paneModalCrossIcon","inputField","alertConfirmationText","alertCancelButton","alertModalCrossIcon","saveChangesButton","cancelButton","inputFieldError","selectDropDownError","subTitleHeading","index","noDataTitle","noDataDescription","backdrop","menuBarHeading","nthTabItem","dropdownWrapper","toggleButton","tooltip","articlePageTitle","tabItem","labelInputError","urlInputError","noDataPrimaryButton","modalHeader","nameInputError","selectContainer","dropdownMenu","nthDropdownIcon","sidebarToggle","customDataCy","name","leftSubHeader","subheader","settingsLink","nthInputField","ticketFieldTextInput","tableSelectors","nthColumn","n","tableBody","tableHeader","tableRow","spinner","nthHeading","profileSelectors","tab","logoutLink","myProfileButton","organizationSettingsButton","loader","dataTestId","appSwitcherBody","sidebarInfo","appSwitcherBackButton"],"sources":["../../../../../src/cypress-utils/constants/selectors/common.js"],"sourcesContent":["import { dataCy, dataTestId, hyphenize } from \"../../utils/common\";\n\nexport const commonSelectors = {\n alertTitle: dataCy(\"alert-title\"),\n alertModalMessage: dataCy(\"alert-message\"),\n alertModalSubmitButton: dataCy(\"alert-submit-button\"),\n checkbox: dataCy(\"nui-checkbox-input\"),\n checkboxLabel: dataCy(\"nui-checkbox-label\"),\n dropdownContainer: dataCy(\"nui-dropdown-container\"),\n dropdownIcon: dataCy(\"nui-dropdown-icon\"),\n heading: dataCy(\"main-header\"),\n paneBody: dataCy(\"pane-body\"),\n paneHeader: dataCy(\"pane-header\"),\n profileSidebar: dataCy(\"profile-section\"),\n selectOption: label => dataCy(`${hyphenize(label)}-select-option`),\n toastMessage: dataCy(\"toastr-message-container\"),\n toastCloseButton: dataCy(\"toastr-close-button\"),\n windowAlert: \"#alert-box\",\n body: \"body\",\n toastIcon: \".Toastify__toast-icon\",\n paneModalCrossIcon: dataCy(\"pane-close-button\"),\n inputField: dataCy(\"nui-input-field\"),\n alertConfirmationText: dataCy(\"alert-confirmation-text\"),\n alertCancelButton: dataCy(\"alert-cancel-button\"),\n alertModalCrossIcon: dataCy(\"modal-close-button\"),\n saveChangesButton: dataCy(\"save-changes-button\"),\n cancelButton: dataCy(\"cancel-button\"),\n inputFieldError: dataCy(\"nui-input-error\"),\n selectDropDownError: dataCy(\"nui-select-error\"),\n subTitleHeading: index => dataCy(\"menubar-subtitle-heading\", `:eq(${index})`),\n noDataTitle: dataCy(\"no-data-title\"),\n noDataDescription: dataCy(\"no-data-description\"),\n backdrop: dataCy(\"neeto-backdrop\"),\n menuBarHeading: dataCy(\"menubar-heading\"),\n nthTabItem: index => dataCy(\"tab-item\", `:eq(${index})`),\n dropdownWrapper: index =>\n dataCy(\"nui-select-container-wrapper\", `:eq(${index})`),\n toggleButton: dataCy(\"menubar-toggle-button\"),\n tooltip: dataCy(\"tooltip-box\"),\n articlePageTitle: \".serene-article__title\",\n tabItem: dataCy(\"tab-item\"),\n labelInputError: dataCy(\"label-input-error\"),\n urlInputError: dataCy(\"url-input-error\"),\n noDataPrimaryButton: dataCy(\"no-data-primary-button\"),\n modalHeader: dataCy(\"modal-header\"),\n nameInputError: dataCy(\"name-input-error\"),\n selectContainer: dataCy(\"nui-select-container\"),\n dropdownMenu: dataCy(\"nui-select-menu\"),\n nthDropdownIcon: index => dataCy(\"nui-dropdown-icon\", `:eq(${index})`),\n sidebarToggle: dataCy(\"neeto-molecules-sidebar-toggler\"),\n customDataCy: name => dataCy(name),\n leftSubHeader: dataCy(\"subheader-left\"),\n subheader: dataCy(\"subheader\"),\n settingsLink: dataCy(\"Settings\"),\n nthInputField: index => dataCy(\"nui-input-field\", `:eq(${index})`),\n ticketFieldTextInput: label => dataCy(`${hyphenize(label)}-text-input`),\n};\n\nexport const tableSelectors = {\n nthColumn: n => `td:nth-child(${n})`,\n tableBody: \".ant-table-body\",\n tableHeader: \".ant-table-thead th\",\n tableRow: \".ant-table-tbody tr\",\n spinner: \".ant-spin\",\n nthHeading: n => `tr > th:nth-child(${n})`,\n};\n\nexport const profileSelectors = {\n tab: dataCy(\"profile-section\"),\n logoutLink: dataCy(\"profile-logout-button\"),\n myProfileButton: dataCy(\"my-profile-button\"),\n organizationSettingsButton: dataCy(\"profile-organization-settings-button\"),\n loader: dataTestId(\"spinner\"),\n appSwitcherBody: dataCy(\"app-switcher-body-wrapper\"),\n sidebarInfo: dataCy(\"sidebar-info\"),\n appSwitcherBackButton: dataCy(\"app-switcher-back-button\"),\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,IAAMC,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG;EAC7BE,UAAU,EAAE,IAAAC,cAAM,EAAC,aAAa,CAAC;EACjCC,iBAAiB,EAAE,IAAAD,cAAM,EAAC,eAAe,CAAC;EAC1CE,sBAAsB,EAAE,IAAAF,cAAM,EAAC,qBAAqB,CAAC;EACrDG,QAAQ,EAAE,IAAAH,cAAM,EAAC,oBAAoB,CAAC;EACtCI,aAAa,EAAE,IAAAJ,cAAM,EAAC,oBAAoB,CAAC;EAC3CK,iBAAiB,EAAE,IAAAL,cAAM,EAAC,wBAAwB,CAAC;EACnDM,YAAY,EAAE,IAAAN,cAAM,EAAC,mBAAmB,CAAC;EACzCO,OAAO,EAAE,IAAAP,cAAM,EAAC,aAAa,CAAC;EAC9BQ,QAAQ,EAAE,IAAAR,cAAM,EAAC,WAAW,CAAC;EAC7BS,UAAU,EAAE,IAAAT,cAAM,EAAC,aAAa,CAAC;EACjCU,cAAc,EAAE,IAAAV,cAAM,EAAC,iBAAiB,CAAC;EACzCW,YAAY,E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