package.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":["dataCy","dataTestId","hyphenize","commonSelectors","alertTitle","alertModalMessage","alertModalSubmitButton","checkbox","checkboxLabel","dropdownContainer","dropdownIcon","heading","paneBody","paneHeader","profileSidebar","selectOption","label","concat","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","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,SAASA,MAAM,EAAEC,UAAU,EAAEC,SAAS;AAEtC,OAAO,IAAMC,eAAe,GAAG;EAC7BC,UAAU,EAAEJ,MAAM,CAAC,aAAa,CAAC;EACjCK,iBAAiB,EAAEL,MAAM,CAAC,eAAe,CAAC;EAC1CM,sBAAsB,EAAEN,MAAM,CAAC,qBAAqB,CAAC;EACrDO,QAAQ,EAAEP,MAAM,CAAC,oBAAoB,CAAC;EACtCQ,aAAa,EAAER,MAAM,CAAC,oBAAoB,CAAC;EAC3CS,iBAAiB,EAAET,MAAM,CAAC,wBAAwB,CAAC;EACnDU,YAAY,EAAEV,MAAM,CAAC,mBAAmB,CAAC;EACzCW,OAAO,EAAEX,MAAM,CAAC,aAAa,CAAC;EAC9BY,QAAQ,EAAEZ,MAAM,CAAC,WAAW,CAAC;EAC7Ba,UAAU,EAAEb,MAAM,CAAC,aAAa,CAAC;EACjCc,cAAc,EAAEd,MAAM,CAAC,iBAAiB,CAAC;EACzCe,YAAY,EAAE,SAAAA,aAAAC,KAAK;IAAA,OAAIhB,MAAM,IAAAiB,MAAA,CAAIf,SAAS,CAACc,KAAK,CAAC,oBA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