@ironsource/shared-ui-e2e 2.1.3-rc.11 → 2.1.3-rc.13
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 +1 -1
- package/shared-e2e-commands.js +233 -309
- package/shared-e2e-commands.umd.cjs +1 -2
- package/tests/components/dropdown/dropdown-v4/dropdown-component.d.ts +3 -0
- package/tests/components/dropdown/dropdown-v4/dropdown-page.d.ts +1 -0
- package/tests/components/search/search-component.d.ts +2 -5
- package/tests/components/table/table-component.d.ts +11 -21
- package/tests/components/table/table-page.d.ts +4 -16
- package/tests/components/table/types.d.ts +0 -5
- package/tests/global/types.d.ts +4 -0
- package/tests/index.d.ts +6 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,2 +1 @@
|
|
|
1
|
-
(function(c,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(c=typeof globalThis<"u"?globalThis:c||self,s(c["shared-ui-e2e"]={}))})(this,function(c){"use strict";var K=Object.defineProperty;var z=(c,s,l)=>s in c?K(c,s,{enumerable:!0,configurable:!0,writable:!0,value:l}):c[s]=l;var p=(c,s,l)=>(z(c,typeof s!="symbol"?s+"":s,l),l);var s=(a=>(a.TRIGGER="ie-trigger",a.CONTENT="ie-content",a.SEARCH="ie-search",a.LIST="ie-list",a.LIST_SELECTED="ie-list-selected",a.ACTION_CANCEL="ie-action-cancel",a.ACTION_APPLY="ie-action-apply",a.SELECT_ALL="ie-select-all",a.CLEAR_ALL="ie-clear-all",a))(s||{}),l=(a=>(a.TRIGGER="dd-trigger",a.WRAPPER="dd-wrapper",a.BUTTON="dd-button",a.BUTTON_WRAPPER="dd-button-wrapper",a.BUTTON_CONTENT="dd-button-content",a.BUTTON_CLEAR="dd-button-clear",a.LABEL="dd-label",a.LIST_CONTAINER="dd-list-container",a.SEARCH="dd-search",a.TITLE="dd-title",a.ACTION_CANCEL="dd-action-cancel",a.ACTION_APPLY="dd-action-apply",a.ACTION_CLEAR_ALL="dd-action-clear-all",a.HELPER_TEXT="dd-helper-text",a.HELPER_TEXT_ERROR="dd-helper-text-error",a.SELECT_ALL="dd-select-all",a.NO_RESULT="dd-no-result",a))(l||{}),I=(a=>(a.WRAPPER="banner-wrapper",a.CONTENT="banner-content",a))(I||{}),u=(a=>(a.WRAPPER="dialog-wrapper",a.HEADER="dialog-header",a.ACTION_CLOSE="dialog-action-close",a.HEADER_SECONDARY="dialog-header-secondary",a.CONTENT="dialog-content",a.ACTION_BUTTONS_WRAPPER="dialog-action-buttons-wrapper",a.BACKDROP="dialog-backdrop",a.SAVE_BUTTON="dialog-save-button",a.CANCEL_BUTTON="dialog-cancel-button",a))(u||{}),i=(a=>(a.WRAPPER="input-wrapper",a.TOOLTIP="input-tooltip",a.MANDATORY="input-mandatory",a.LABEL_CONTAINER="input-label-container",a.LABEL_TEXT="input-label-text",a.FIELD="input-field",a.EXTRA_TEXT="input-extra-text",a.TOGGLE_PASSWORD="input-toggle-password-icon",a))(i||{}),R=(a=>(a.CONTAINER="search-container",a.FIELD="search-field",a.CLOSE="search-close",a.CLEAR="search-clear",a))(R||{}),g=(a=>(a.CONTAINER="tbl-container",a.TABLE="tbl-table",a.HEADER="tbl-header",a.TITLE="tbl-title",a.HEADER_RIGHT="tbl-header-right",a.ACTIONS="tbl-actions",a.SECTIONS="tbl-sections",a.BODY_WRAPPER="tbl-body-wrapper",a.EMPTY_STATE="tbl-empty-state",a))(g||{}),m=(a=>(a.TEXT="tt-text",a.TRIGGER="tt-trigger",a.HEADER="tt-header",a))(m||{}),d=(a=>(a.WRAPPER="tabs-wrapper",a.TAB="tabs-tab",a))(d||{}),C=(a=>(a.CONTAINER="field-label-container",a.TEXT="field-label-text",a.MANDATORY="field-label-mandatory",a.TOOLTIP="field-label-help-tooltip",a))(C||{}),x=(a=>(a.CONTAINER="field-help-text-container",a.TEXT="field-help-text-text",a.ICON="field-help-text-icon",a))(x||{}),h=(a=>(a.CONTAINER="sb-container",a.TITLE="sb-title",a.MESSAGE="sb-message",a.CLOSE="sb-close",a.ICON="sb-icon",a.ACTION_BUTTON="sb-action-button",a))(h||{}),y=(a=>(a.TITLE="form-card-title",a.CONTENT="form-card-content",a.ACTIONS="form-card-actions",a.SAVE_BUTTON="form-card-save-btn",a.CANCEL_BUTTON="form-card-cancel-btn",a))(y||{}),w=(a=>(a.WRAPPER="multibar-wrapper",a.CLOSE_BTN="multibar-close-button",a.MENU="multibar-menu",a.ACTION="multibar-action",a))(w||{});const N=(a,t)=>{const e=new URLSearchParams(a).toString();return t.includes("?")?`${t}${e}`:`${t}?${e}`},k=(a,t={})=>{const e=[];Object.entries(t).forEach(([T,b])=>{e.push(`${T}:${b}`)});const o={id:a,viewMode:"story",args:e.join(";")};return N(o,"iframe.html")},n=(a,t)=>`${a}-${t}`;class _{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${I.WRAPPER}']`;await this.page.waitForSelector(e)}getBannerText({testId:t}){return this.page.getByTestId(n(t,I.CONTENT)).textContent()}hasBannerType({testId:t,type:e}){return this.page.getByTestId(n(t,I.WRAPPER)).locator(`.icon.icon-name--${e}`)!==null}}class F{constructor(t){p(this,"page");p(this,"testId");p(this,"componentId");p(this,"loadedPageSelector");this.page=t.page,this.testId=t.testId,this.componentId=t.componentId,this.loadedPageSelector=t.loadedPageSelector}async goto(t={}){const e={testId:this.testId,...t.additionalComponentParams};await this.page.goto(k(t.storyId||this.componentId,e)),await this.page.waitForSelector(this.loadedPageSelector)}}class D{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${u.WRAPPER}']`;await this.page.waitForSelector(e)}getDialogTitle({testId:t}){return this.page.getByTestId(n(t,u.HEADER)).locator(".font-heading-3").textContent()}getDialogText({testId:t}){return this.page.getByTestId(n(t,u.CONTENT)).textContent()}async closeDialog({testId:t}){await(await this.page.getByTestId(n(t,u.ACTION_CLOSE))).click()}async clickOnPrimaryButton({testId:t}){await(await this.page.getByTestId(n(t,u.ACTION_BUTTONS_WRAPPER)).locator(".primary")).click()}async clickOnDefaultButton({testId:t}){await(await this.page.getByTestId(n(t,u.ACTION_BUTTONS_WRAPPER)).locator(".default")).click()}async clickOnDeleteButton({testId:t}){await(await this.page.getByTestId(n(t,u.ACTION_BUTTONS_WRAPPER)).locator(".danger")).click()}getDialogSubtitle({testId:t}){return this.page.getByTestId(n(t,u.HEADER)).locator(".subtitle").textContent()}async isDialogVisible({testId:t}){return await this.page.waitForTimeout(1e3),(await this.page.getByTestId(n(t,u.WRAPPER))).isVisible()}}class O{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){await this.page.getByTestId(n(t,l.WRAPPER))}async selectDropdownOptionByIndex({testId:t,index:e}){await this.openDropdownComponent({testId:t}),await this.page.getByTestId(n(t,l.LIST_CONTAINER)).locator("ul > li").nth(e).click()}async openDropdownComponent({testId:t}){await this.page.getByTestId(n(t,l.TRIGGER)).click({position:{x:10,y:10}})}async selectDropdownOptionByName({testId:t,name:e}){await this.openDropdownComponent({testId:t}),await this.page.getByTestId(n(t,l.LIST_CONTAINER)).locator("ul > li span",{hasText:e}).click()}async selectMultipleItemsByIndex({testId:t,itemsToSelect:e}){await this.openDropdownComponent({testId:t});for(const o of e)await this.page.getByTestId(n(t,l.LIST_CONTAINER)).locator("ul > li").nth(o).click()}async selectMultipleItemsByName({testId:t,itemsToSelect:e}){await this.openDropdownComponent({testId:t});for(const o of e)await this.page.getByTestId(n(t,l.LIST_CONTAINER)).locator("ul > li span",{hasText:o}).first().click()}async clickOnApply({testId:t}){await this.page.getByTestId(n(t,l.ACTION_APPLY)).click()}async clickOnCancel({testId:t}){await this.page.getByTestId(n(t,l.ACTION_CANCEL)).click()}}class E{constructor(t){p(this,"page");this.page=t}getLabelText({testId:t}){return this.page.getByTestId(n(t,C.TEXT)).textContent()}isMandatory({testId:t}){return this.page.getByTestId(n(t,C.MANDATORY)).isVisible()}async getHelpIconText({testId:t}){const e=await this.page.getByTestId(n(t,C.TOOLTIP));return await e.hover(),e.getAttribute("text")}}class A{constructor(t){p(this,"page");this.page=t}hasExtraText({testId:t}){return this.page.getByTestId(n(t,x.TEXT)).isVisible()}getExtraText({testId:t}){return this.page.getByTestId(n(t,x.TEXT)).textContent()}async hasExtraTextIconType({testId:t,type:e}){return await(await this.page.getByTestId(n(t,x.CONTAINER)).locator(`.icon.icon-name--${e}`)).count()!==0}}class $ extends O{constructor(e){super(e);p(this,"fieldLabelComponent");p(this,"fieldHelpTextComponent");this.fieldLabelComponent=new E(e),this.fieldHelpTextComponent=new A(e)}getDropdownTitle({testId:e}){return this.fieldLabelComponent.getLabelText({testId:e})}isMandatory({testId:e}){return this.fieldLabelComponent.isMandatory({testId:e})}getHelpIconText({testId:e}){return this.fieldLabelComponent.getHelpIconText({testId:e})}hasExtraText({testId:e}){return this.fieldHelpTextComponent.hasExtraText({testId:e})}getExtraText({testId:e}){return this.fieldHelpTextComponent.getExtraText({testId:e})}hasExtraTextIconType({testId:e,type:o}){return this.fieldHelpTextComponent.hasExtraTextIconType({testId:e,type:o})}getSelectedLabel({testId:e}){return this.page.getByTestId(n(e,l.BUTTON_CONTENT)).textContent()}async searchForItem({testId:e,searchTerm:o}){return await this.openDropdownComponent({testId:e}),await this.page.getByTestId(n(e,i.FIELD)).fill(o),this.page.getByTestId(n(e,l.LIST_CONTAINER)).locator("ul > li span").first().textContent()}isErrorText({testId:e}){return this.page.getByTestId(n(e,l.TRIGGER)).locator(".state-error").isVisible()}async isDisabled({testId:e}){return(await this.page.getByTestId(n(e,l.TRIGGER)).locator(".button__container--disabled")).isVisible()}async clearAllOptions({testId:e}){await this.page.getByTestId(n(e,l.ACTION_CLEAR_ALL)).click()}isSelectAllChecked({testId:e}){return this.page.getByTestId(n(e,l.SELECT_ALL)).locator(".checkbox.input").isChecked()}isSelectAllIndeterminate({testId:e}){return this.page.getByTestId(n(e,l.SELECT_ALL)).locator(".icon.indeterminate").isVisible()}async removeChipSelection({testId:e}){await this.page.getByTestId(n(e,l.BUTTON_CLEAR)).click()}}class H extends O{constructor(t){super(t)}getDropdownTitle({testId:t}){return this.page.getByTestId(n(t,l.WRAPPER)).locator("label > span").textContent()}getSelectedItem({testId:t}){return this.page.getByTestId(n(t,l.TRIGGER)).locator("button > span").textContent()}async searchForItem({testId:t,searchTerm:e}){return await this.openDropdownComponent({testId:t}),await this.page.getByTestId(n(t,R.FIELD)).fill(e),this.page.getByTestId(n(t,l.LIST_CONTAINER)).locator("ul > li span").first().textContent()}}class V{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${s.TRIGGER}']`;await this.page.waitForSelector(e)}async clickOnApply(t){await this.page.getByTestId(n(t,s.ACTION_APPLY)).click()}async clickOnCancel(t){await this.page.getByTestId(n(t,s.ACTION_CANCEL)).click()}async openIncludeExcludeComponent(t){await this.page.getByTestId(n(t,s.TRIGGER)).click()}async searchForItem({testId:t,searchTerm:e}){return await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.SEARCH)).locator("input.transparent").fill(e),this.page.getByTestId(n(t,s.LIST)).locator("ul > li .v-popper span").first().textContent()}async selectItemByName({testId:t,entityName:e}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.LIST)).locator("ul > li .v-popper span",{hasText:e}).first().click(),await this.clickOnApply(t)}async selectItemByIndex({testId:t,index:e,applyChanges:o}){await this.clearAll({testId:t}),await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.LIST)).locator(".include-exclude-list ul > li").nth(e).click(),await this.page.waitForSelector("include-exclude-list-header-loading",{state:"hidden"}),o&&await this.clickOnApply(t)}async selectMultipleItems({testId:t,itemsToSelect:e}){await this.clearAll({testId:t}),await this.openIncludeExcludeComponent(t);for(const o of e)await this.page.getByTestId(n(t,s.LIST)).locator(".include-exclude-list ul > li").nth(o).click()}async unselectItemByName({testId:t,entityName:e}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.LIST_SELECTED)).locator("ul > li",{hasText:e}).locator(".clear-button").click(),await this.clickOnApply(t)}async unselectByIndex({testId:t,index:e,applyChanges:o}){await this.page.getByTestId(n(t,s.LIST_SELECTED)).locator("ul li button").nth(e).click(),o&&await this.clickOnApply(t)}async getSelectedCounter(t){return await this.page.getByTestId(n(t,s.LIST_SELECTED)).locator(".include-exclude-selected-header-left span").textContent()}async clearAll({testId:t}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.CLEAR_ALL)).click(),await this.clickOnApply(t)}getTriggerText({testId:t}){return this.page.getByTestId(n(t,s.TRIGGER)).locator(".include-exclude-trigger-middle-section .container span").first().textContent()}getTriggerDescription({testId:t}){return this.page.getByTestId(n(t,s.TRIGGER)).locator("div span.include-exclude-trigger-description").first().textContent()}async selectAll({testId:t}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.SELECT_ALL)).click(),await this.clickOnApply(t)}}class P{constructor(t){p(this,"page");this.page=t}getInputsFieldText({testId:t}){return this.page.getByTestId(n(t,i.FIELD)).inputValue()}getPlaceholderText({testId:t}){return this.page.getByTestId(n(t,i.FIELD)).getAttribute("placeholder")}getInputsType({testId:t}){return this.page.getByTestId(n(t,i.FIELD)).getAttribute("type")}async addInput({testId:t,text:e}){await this.page.getByTestId(n(t,i.FIELD)).type(e)}async clearInput({testId:t}){await this.page.getByTestId(n(t,i.FIELD)).clear()}isDisabled({testId:t}){return this.page.getByTestId(n(t,i.FIELD)).isDisabled()}}class W extends P{constructor(e){super(e);p(this,"fieldLabelComponent");p(this,"fieldHelpTextComponent");this.fieldLabelComponent=new E(e),this.fieldHelpTextComponent=new A(e)}getInputsLabelText({testId:e}){return this.fieldLabelComponent.getLabelText({testId:e})}async waitForComponent({testId:e}){const o=`[data-testid='${e}-${i.WRAPPER}']`;await this.page.waitForSelector(o)}isInputMandatory({testId:e}){return this.fieldLabelComponent.isMandatory({testId:e})}hasInputExtraText({testId:e}){return this.fieldHelpTextComponent.hasExtraText({testId:e})}getInputExtraText({testId:e}){return this.fieldHelpTextComponent.getExtraText({testId:e})}async clickOnApplyButton({testId:e}){await(await this.page.getByTestId(n(e,i.WRAPPER)).locator(".icon.icon-name--check")).click()}hasInlineErrorText({testId:e}){return this.page.getByTestId(n(e,i.TOOLTIP)).isVisible()}async getInlineErrorText({testId:e}){const o=await this.page.getByTestId(n(e,i.TOOLTIP));return await o.hover(),o.getAttribute("text")}async clickOnShowPassword({testId:e}){await this.isPasswordHidden({testId:e})&&await this.clickOnPasswordIcon({testId:e})}async clickOnPasswordIcon({testId:e}){await this.page.getByTestId(n(e,i.TOGGLE_PASSWORD)).click()}async clickOnHidePassword({testId:e}){await this.isPasswordHidden({testId:e})||await this.clickOnPasswordIcon({testId:e})}isPasswordHidden({testId:e}){return this.page.getByTestId(n(e,i.TOGGLE_PASSWORD)).locator(".icon.icon-name--eye-slash").isVisible()}async clearInput({testId:e}){const o=await this.page.getByTestId(n(e,i.FIELD));await o.click({clickCount:2}),await o.type("")}hasExtraTextIconType({testId:e,type:o}){return this.fieldHelpTextComponent.hasExtraTextIconType({testId:e,type:o})}async isDisabled({testId:e}){return(await this.page.getByTestId(n(e,i.FIELD))).isDisabled()}hasApplyButton({testId:e}){return this.page.getByTestId(n(e,i.WRAPPER)).locator(".icon.icon-name--check").isVisible()}async getMaxLengthNumber({testId:e}){return(await this.getFontCaptionText({testId:e}))[1]}async getActualNumberLength({testId:e}){return(await this.getFontCaptionText({testId:e}))[0]}async getFontCaptionText({testId:e}){return(await this.page.getByTestId(n(e,i.WRAPPER)).locator(".font-caption").textContent()).split("/").map(r=>parseInt(r.trim(),10))}getHelpIconText({testId:e}){return this.fieldLabelComponent.getHelpIconText({testId:e})}}class f{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${d.WRAPPER}']`;await this.page.waitForSelector(e)}getSelectedTabText({testId:t}){return this.page.getByTestId(n(t,d.WRAPPER)).locator(".tab-item--active").textContent()}async selectTab({testId:t,tabName:e}){const o=await this.getTabIndex({testId:t,tabName:e});await this.page.getByTestId(n(t,`${d.TAB}-${o+1}`)).click()}async getTabIndex({testId:t,tabName:e}){return(await this.page.getByTestId(n(t,d.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e)}async isTabDisabled({testId:t,tabName:e}){const o=await this.getTabIndex({testId:t,tabName:e});return this.page.getByTestId(n(t,`${d.TAB}-${o}`)).locator(".tab-item--disabled").isVisible()}}class G{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${m.TRIGGER}']`;await this.page.waitForSelector(e)}getTooltipText({testId:t}){return this.page.getByTestId(`${t}-${m.TRIGGER}`).getAttribute("text")}getTooltipHeaderText({testId:t}){return this.page.getByTestId(`${t}-${m.TRIGGER}`).getAttribute("header")}}class v{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${g.CONTAINER}']`;await this.page.waitForSelector(e)}getTableRowCount({testId:t}){return this.page.getByTestId(n(t,g.BODY_WRAPPER)).locator(".table-row").count()}getTableRowContentByIndex({testId:t,index:e}){try{return this.page.getByTestId(`${t}-${g.BODY_WRAPPER}`).locator(".table-row").nth(e).innerText()}catch(o){throw console.error(o),new Error(o)}}async getTableRowsByRowValue({testId:t,headerName:e,rowValue:o}){const r=await this.getRowIndicesByRowValue({testId:t,headerName:e,rowValue:o}),T=[];for(const b of r){const L=await this.getTableRowContentByIndex({testId:t,index:b});T.push(L)}return T}async getRowIndicesByRowValue({testId:t,headerName:e,rowValue:o}){const r=await this.getColumnValuesByHeader({testId:t,headerName:e});return this.getIndicesOf({searchStr:o,array:r})}getIndicesOf({searchStr:t,array:e}){const o=[];for(let r=0;r<e.length;r++)e[r]===t&&o.push(r);return o}async getColumnValuesByHeader({headerName:t,testId:e}){const o=await this.getColumnIndexByHeader({testId:e,headerName:t});return this.getColumnValuesByIndex({testId:e,index:o})}async getColumnIndexByHeader({headerName:t,testId:e}){return(await this.getColumnHeaders({testId:e})).indexOf(t)}async getColumnValuesByIndex({index:t,testId:e}){const o=[],r=await this.getTableRowCount({testId:e});for(let T=0;T<r;T++){const L=(await this.getTableRowContentByIndex({testId:e,index:T})).split(`
|
|
2
|
-
`)[t];o.push(L)}return o}async getColumnHeaders({testId:t}){return this.page.getByTestId(n(t,g.TABLE)).locator(".table-head-container").allTextContents()}getTableLabel({testId:t}){return this.page.getByTestId(n(t,g.HEADER)).innerText()}getTableFooter({testId:t}){return this.page.getByTestId(n(t,g.CONTAINER)).locator(".table-footer").innerText()}async clickOnSortByHeaderName({testId:t,headerName:e}){await this.clickOnHeaderByName({testId:t,headerName:e})}async clickOnHeaderByName({testId:t,headerName:e}){const o=await this.getColumnIndexByHeader({testId:t,headerName:e});await this.page.getByTestId(n(t,g.TABLE)).locator(".table-head-container").nth(o).click()}async searchForItems({testId:t,searchTerm:e}){await this.clearSearchText({testId:t}),await this.page.getByTestId(n(t,i.FIELD)).fill(e)}async clearSearchText({testId:t}){await this.page.getByTestId(n(t,i.FIELD)).clear()}async isArrowVisible({testId:t,headerName:e}){const o=await this.getColumnIndexByHeader({headerName:e,testId:t});return this.page.getByTestId(n(t,g.TABLE)).locator(".table-head-container").nth(o).locator(".table-sort-icon").isVisible()}async scrollDownTableRows({testId:t}){const e=`[data-testid=${n(t,g.TABLE)}]`;await this.page.focus(e),await this.page.evaluate(o=>{const r=document.querySelector(o);r&&(r.scrollTop=r.scrollHeight)},e),await this.waitForTableToLoad()}async waitForTableToLoad(){await this.page.waitForSelector(".table-row.loading",{state:"hidden"})}async expandRow({testId:t,headerName:e,rowValue:o}){const r=await this.getRowIndicesByRowValue({testId:t,headerName:e,rowValue:o});await this.page.getByTestId(n(t,g.BODY_WRAPPER)).locator(".table-row").nth(r[0]).locator(".icon-wrapper").click()}async isRowExpanded({testId:t,headerName:e,rowValue:o}){const r=await this.getRowIndicesByRowValue({testId:t,headerName:e,rowValue:o});return this.page.getByTestId(n(t,g.BODY_WRAPPER)).locator(".table-row").nth(r[0]).locator(".icon-wrapper").isVisible()}async getExpandedRowContent({testId:t,headerName:e,rowValue:o}){await this.isRowExpanded({testId:t,headerName:e,rowValue:o})||await this.expandRow({testId:t,headerName:e,rowValue:o});const T=await this.getRowIndicesByRowValue({testId:t,headerName:e,rowValue:o});return this.page.getByTestId(n(t,g.BODY_WRAPPER)).locator(".table-row").nth(T[0]).locator(".icon-wrapper").textContent()}isEmptyStateVisible({testId:t}){return this.page.getByTestId(n(t,g.TABLE)).locator(".empty-state").isVisible()}getEmptyStateTitle({testId:t}){return this.page.getByTestId(n(t,g.TABLE)).locator(".font-heading-4.title").textContent()}getEmptyStateSubtitle({testId:t}){return this.page.getByTestId(n(t,g.TABLE)).locator(".font-body-1.subtitle").textContent()}async clickOnRowCheckboxByIndex({testId:t,index:e}){await this.page.getByTestId(n(t,g.BODY_WRAPPER)).locator(".table-row").nth(e).locator(".states").click()}async clickOnRowCheckboxByRowValue({testId:t,headerName:e,rowValue:o}){const r=await this.getRowIndicesByRowValue({testId:t,headerName:e,rowValue:o});for(const T of r)await this.clickOnRowCheckboxByIndex({testId:t,index:T})}getCheckedRowsNumber({testId:t}){return this.page.getByTestId(n(t,g.TABLE)).locator(".table-row").locator(".icon.checked").count()}async clickOnSelectAllCheckbox({testId:t}){await this.page.getByTestId(n(t,g.TABLE)).locator(".states").nth(0).click()}getTableRowLocatorByIndex({testId:t,index:e}){return this.page.getByTestId(n(t,g.BODY_WRAPPER)).locator(".table-row").nth(e)}async getTableRowLocatorByRowValue({testId:t,headerName:e,rowValue:o}){const r=await this.getRowIndicesByRowValue({testId:t,headerName:e,rowValue:o});return this.getTableRowLocatorByIndex({testId:t,index:r[0]})}}class S{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}']`;await this.page.waitForSelector(e)}async clickOnButton({testId:t}){await this.page.click(`[data-testid='${t}']`)}async isButtonLoading({testId:t}){return(await this.page.getByTestId(t).getAttribute("class")).includes("loading")}async getButtonText({testId:t}){return this.page.getByTestId(t).locator(".font-button").textContent()}isButtonDisabled({testId:t}){return this.page.getByTestId(t).isDisabled()}}class U{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${h.CONTAINER}']`;await this.page.waitForSelector(e)}getSnackbarTitle({testId:t}){return this.page.getByTestId(n(t,h.TITLE)).textContent()}async closeSnackbar({testId:t}){await this.page.getByTestId(n(t,h.CLOSE)).locator(".icon-name--x").click()}async waitForSnackbarToBeClosed({testId:t}){const e=`[data-testid='${t}-${h.CONTAINER}']`;await this.page.waitForSelector(e,{state:"detached"})}getSnackbarDescription({testId:t}){return this.page.getByTestId(n(t,h.MESSAGE)).textContent()}async clickOnActionButton({testId:t,buttonName:e}){const o=await this.getActionButtonIndex({testId:t,buttonName:e}),r=`[data-testid='${t}-${h.ACTION_BUTTON}-${o}']`;await this.page.click(r)}async getActionButtonIndex({testId:t,buttonName:e}){return(await this.page.getByTestId(n(t,h.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e)}}class X{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${w.WRAPPER}']`;await this.page.waitForSelector(e)}async closeMultiBar({testId:t}){await this.page.getByTestId(n(t,w.CLOSE_BTN)).locator(".icon-wrapper").click()}getMultiBarCountText({testId:t}){return this.page.getByTestId(n(t,w.WRAPPER)).locator(".count-text").textContent()}async isMultiBarVisible({testId:t}){return await this.page.waitForTimeout(1e3),this.page.getByTestId(n(t,w.WRAPPER)).locator(".multi-bar-panel").isVisible()}async clickOnActionButton({testId:t,actionButtonId:e}){await this.page.getByTestId(n(t,`${w.ACTION}-${e}`)).locator(".start-icon").click()}}class Y{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${C.TEXT}']`;await this.page.waitForSelector(e)}getFormRowTitle({testId:t}){return new E(this.page).getLabelText({testId:t})}isFormRowMandatory({testId:t}){return new E(this.page).isMandatory({testId:t})}getIconText({testId:t}){return new A(this.page).getExtraText({testId:t})}}class j{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${y.CONTENT}']`;await this.page.waitForSelector(e)}getCardTitle({testId:t}){return this.page.getByTestId(n(t,y.TITLE)).textContent()}getCardContentText({testId:t}){return this.page.getByTestId(n(t,y.CONTENT)).textContent()}async clickOnSaveButton({testId:t}){await this.page.getByTestId(n(t,y.SAVE_BUTTON)).click()}async clickOnCancelButton({testId:t}){await this.page.getByTestId(n(t,y.CANCEL_BUTTON)).click()}isSaveButtonLoading({testId:t}){return new S(this.page).isButtonLoading({testId:t})}}class B extends P{constructor(t){super(t)}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${i.WRAPPER}']`;await this.page.waitForSelector(e)}async isViewOnly({testId:t}){return await this.page.getByTestId(n(t,i.WRAPPER)).locator(".view-only.input-type").count()>0}getLabel({testId:t}){return this.page.getByTestId(n(t,i.LABEL_TEXT)).textContent()}isInputMandatory({testId:t}){return this.page.getByTestId(n(t,i.MANDATORY)).isVisible()}hasInputExtraHelpText({testId:t}){return this.page.getByTestId(n(t,i.EXTRA_TEXT)).isVisible()}async getHelpIconText({testId:t}){const e=await this.page.getByTestId(n(t,i.LABEL_CONTAINER)).locator(".v-popper.v-popper--theme-default");return await e.hover(),e.getAttribute("text")}getInputExtraText({testId:t}){return this.page.getByTestId(n(t,i.EXTRA_TEXT)).textContent()}getErrorExtraText({testId:t}){return this.page.getByTestId(n(t,i.EXTRA_TEXT)).locator(".error").textContent()}async showPassword({testId:t}){await this.isPasswordHidden({testId:t})&&await this.clickOnPasswordButton({testId:t})}async isPasswordHidden({testId:t}){return await this.page.getByTestId(n(t,i.WRAPPER)).getAttribute("type")==="password"}async clickOnPasswordButton({testId:t}){await(await this.page.getByTestId(n(t,i.WRAPPER)).locator(".password-visibility")).click()}}class q{constructor(t){p(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${R.CONTAINER}']`;await this.page.waitForSelector(e)}async searchInput({testId:t,value:e}){await new B(this.page).addInput({testId:t,text:e})}async clearInput({testId:t}){await new B(this.page).clearInput({testId:t})}async clickOnXButton({testId:t}){await this.page.getByTestId(n(t,R.CLEAR)).locator(".icon-name--x-circle").click()}isDisabled({testId:t}){return new B(this.page).isDisabled({testId:t})}getSearchPlaceholder({testId:t}){return new B(this.page).getPlaceholderText({testId:t})}getSearchInputValue({testId:t}){return new B(this.page).getInputsFieldText({testId:t})}}c.BannerComponent=_,c.ButtonComponent=S,c.ComponentBasePage=F,c.DialogComponent=D,c.DropdownComponent=$,c.DropdownComponentV3=H,c.FieldHelpTextComponent=A,c.FieldLabelComponent=E,c.FormCardComponent=j,c.FormRowComponent=Y,c.IncludeExcludeComponent=V,c.InputsComponent=W,c.MultiBarComponent=X,c.SearchComponent=q,c.SnackbarComponent=U,c.TableComponent=v,c.TabsComponent=f,c.TooltipComponent=G,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(i,s){typeof exports=="object"&&typeof module<"u"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(i=typeof globalThis<"u"?globalThis:i||self,s(i["shared-ui-e2e"]={}))})(this,function(i){"use strict";var at=Object.defineProperty;var nt=(i,s,r)=>s in i?at(i,s,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[s]=r;var l=(i,s,r)=>(nt(i,typeof s!="symbol"?s+"":s,r),r);var s=(a=>(a.TRIGGER="ie-trigger",a.CONTENT="ie-content",a.SEARCH="ie-search",a.LIST="ie-list",a.LIST_SELECTED="ie-list-selected",a.ACTION_CANCEL="ie-action-cancel",a.ACTION_APPLY="ie-action-apply",a.SELECT_ALL="ie-select-all",a.CLEAR_ALL="ie-clear-all",a))(s||{}),r=(a=>(a.TRIGGER="dd-trigger",a.WRAPPER="dd-wrapper",a.BUTTON="dd-button",a.BUTTON_WRAPPER="dd-button-wrapper",a.BUTTON_CONTENT="dd-button-content",a.BUTTON_CLEAR="dd-button-clear",a.LABEL="dd-label",a.LIST_CONTAINER="dd-list-container",a.SEARCH="dd-search",a.TITLE="dd-title",a.ACTION_CANCEL="dd-action-cancel",a.ACTION_APPLY="dd-action-apply",a.ACTION_CLEAR_ALL="dd-action-clear-all",a.HELPER_TEXT="dd-helper-text",a.HELPER_TEXT_ERROR="dd-helper-text-error",a.SELECT_ALL="dd-select-all",a.NO_RESULT="dd-no-result",a))(r||{}),A=(a=>(a.WRAPPER="banner-wrapper",a.CONTENT="banner-content",a))(A||{}),g=(a=>(a.WRAPPER="dialog-wrapper",a.HEADER="dialog-header",a.ACTION_CLOSE="dialog-action-close",a.HEADER_SECONDARY="dialog-header-secondary",a.CONTENT="dialog-content",a.ACTION_BUTTONS_WRAPPER="dialog-action-buttons-wrapper",a.BACKDROP="dialog-backdrop",a.SAVE_BUTTON="dialog-save-button",a.CANCEL_BUTTON="dialog-cancel-button",a))(g||{}),c=(a=>(a.WRAPPER="input-wrapper",a.TOOLTIP="input-tooltip",a.MANDATORY="input-mandatory",a.LABEL_CONTAINER="input-label-container",a.LABEL_TEXT="input-label-text",a.FIELD="input-field",a.EXTRA_TEXT="input-extra-text",a.TOGGLE_PASSWORD="input-toggle-password-icon",a))(c||{}),m=(a=>(a.CONTAINER="search-container",a.FIELD="search-field",a.CLOSE="search-close",a.CLEAR="search-clear",a))(m||{}),p=(a=>(a.CONTAINER="tbl-container",a.TABLE="tbl-table",a.HEADER="tbl-header",a.TITLE="tbl-title",a.HEADER_RIGHT="tbl-header-right",a.ACTIONS="tbl-actions",a.SECTIONS="tbl-sections",a.BODY_WRAPPER="tbl-body-wrapper",a.EMPTY_STATE="tbl-empty-state",a))(p||{}),I=(a=>(a.TEXT="tt-text",a.TRIGGER="tt-trigger",a.HEADER="tt-header",a))(I||{}),u=(a=>(a.WRAPPER="tabs-wrapper",a.TAB="tabs-tab",a))(u||{}),w=(a=>(a.CONTAINER="field-label-container",a.TEXT="field-label-text",a.MANDATORY="field-label-mandatory",a.TOOLTIP="field-label-help-tooltip",a))(w||{}),x=(a=>(a.CONTAINER="field-help-text-container",a.TEXT="field-help-text-text",a.ICON="field-help-text-icon",a))(x||{}),T=(a=>(a.CONTAINER="sb-container",a.TITLE="sb-title",a.MESSAGE="sb-message",a.CLOSE="sb-close",a.ICON="sb-icon",a.ACTION_BUTTON="sb-action-button",a))(T||{}),d=(a=>(a.TITLE="form-card-title",a.CONTENT="form-card-content",a.ACTIONS="form-card-actions",a.SAVE_BUTTON="form-card-save-btn",a.CANCEL_BUTTON="form-card-cancel-btn",a))(d||{}),R=(a=>(a.TITLE="ah-title",a.APP_KEY="ah-app-key",a.APP_PLATFORM="ah-app-platform",a))(R||{}),b=(a=>(a.TEXT="ic-text",a.COPY_BTN="ic-copy-btn",a))(b||{}),y=(a=>(a.WRAPPER="multibar-wrapper",a.CLOSE_BTN="multibar-close-button",a.MENU="multibar-menu",a.ACTION="multibar-action",a))(y||{});const $=(a,t)=>{const e=new URLSearchParams(a).toString();return t.includes("?")?`${t}${e}`:`${t}?${e}`},D=(a,t={})=>{const e=[];Object.entries(t).forEach(([tt,et])=>{e.push(`${tt}:${et}`)});const o={id:a,viewMode:"story",args:e.join(";")};return $(o,"iframe.html")},n=(a,t)=>`${a}-${t}`;class H{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${A.WRAPPER}']`;await this.page.waitForSelector(e)}getBannerText({testId:t}){return this.page.getByTestId(n(t,A.CONTENT)).textContent()}hasBannerType({testId:t,type:e}){return this.page.getByTestId(n(t,A.WRAPPER)).locator(`.icon.icon-name--${e}`)!==null}}class W{constructor(t){l(this,"page");l(this,"testId");l(this,"componentId");l(this,"loadedPageSelector");this.page=t.page,this.testId=t.testId,this.componentId=t.componentId,this.loadedPageSelector=t.loadedPageSelector}async goto(t={}){const e={testId:this.testId,...t.additionalComponentParams};await this.page.goto(D(t.storyId||this.componentId,e)),await this.page.waitForSelector(this.loadedPageSelector)}}class v{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${g.WRAPPER}']`;await this.page.waitForSelector(e)}getDialogTitle({testId:t}){return this.page.getByTestId(n(t,g.HEADER)).locator(".font-heading-3").textContent()}getDialogText({testId:t}){return this.page.getByTestId(n(t,g.CONTENT)).textContent()}async closeDialog({testId:t}){await(await this.page.getByTestId(n(t,g.ACTION_CLOSE))).click()}async clickOnPrimaryButton({testId:t}){await(await this.page.getByTestId(n(t,g.ACTION_BUTTONS_WRAPPER)).locator(".primary")).click()}async clickOnDefaultButton({testId:t}){await(await this.page.getByTestId(n(t,g.ACTION_BUTTONS_WRAPPER)).locator(".default")).click()}async clickOnDeleteButton({testId:t}){await(await this.page.getByTestId(n(t,g.ACTION_BUTTONS_WRAPPER)).locator(".danger")).click()}getDialogSubtitle({testId:t}){return this.page.getByTestId(n(t,g.HEADER)).locator(".subtitle").textContent()}async isDialogVisible({testId:t}){return await this.page.waitForTimeout(1e3),(await this.page.getByTestId(n(t,g.WRAPPER))).isVisible()}}class S{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){await this.page.getByTestId(n(t,r.WRAPPER))}async selectDropdownOptionByIndex({testId:t,index:e}){await this.openDropdownComponent({testId:t}),await this.page.getByTestId(n(t,r.LIST_CONTAINER)).locator("ul > li").nth(e).click()}async openDropdownComponent({testId:t}){await this.page.getByTestId(n(t,r.TRIGGER)).click({position:{x:10,y:10}})}async selectDropdownOptionByName({testId:t,name:e}){await this.openDropdownComponent({testId:t}),await this.page.getByTestId(n(t,r.LIST_CONTAINER)).locator("ul > li span",{hasText:e}).click()}async selectMultipleItemsByIndex({testId:t,itemsToSelect:e}){await this.openDropdownComponent({testId:t});for(const o of e)await this.page.getByTestId(n(t,r.LIST_CONTAINER)).locator("ul > li").nth(o).click()}async selectMultipleItemsByName({testId:t,itemsToSelect:e}){await this.openDropdownComponent({testId:t});for(const o of e)await this.page.getByTestId(n(t,r.LIST_CONTAINER)).locator("ul > li span",{hasText:o}).first().click()}async clickOnApply({testId:t}){await this.page.getByTestId(n(t,r.ACTION_APPLY)).click()}async clickOnCancel({testId:t}){await this.page.getByTestId(n(t,r.ACTION_CANCEL)).click()}}class E{constructor(t){l(this,"page");this.page=t}getLabelText({testId:t}){return this.page.getByTestId(n(t,w.TEXT)).textContent()}isMandatory({testId:t}){return this.page.getByTestId(n(t,w.MANDATORY)).isVisible()}async getHelpIconText({testId:t}){const e=await this.page.getByTestId(n(t,w.TOOLTIP));return await e.hover(),e.getAttribute("text")}}class L{constructor(t){l(this,"page");this.page=t}hasExtraText({testId:t}){return this.page.getByTestId(n(t,x.TEXT)).isVisible()}getExtraText({testId:t}){return this.page.getByTestId(n(t,x.TEXT)).textContent()}async hasExtraTextIconType({testId:t,type:e}){return await(await this.page.getByTestId(n(t,x.CONTAINER)).locator(`.icon.icon-name--${e}`)).count()!==0}}class G extends S{constructor(e){super(e);l(this,"fieldLabelComponent");l(this,"fieldHelpTextComponent");this.fieldLabelComponent=new E(e),this.fieldHelpTextComponent=new L(e)}getDropdownTitle({testId:e}){return this.fieldLabelComponent.getLabelText({testId:e})}isMandatory({testId:e}){return this.fieldLabelComponent.isMandatory({testId:e})}getHelpIconText({testId:e}){return this.fieldLabelComponent.getHelpIconText({testId:e})}hasExtraText({testId:e}){return this.fieldHelpTextComponent.hasExtraText({testId:e})}getExtraText({testId:e}){return this.fieldHelpTextComponent.getExtraText({testId:e})}hasExtraTextIconType({testId:e,type:o}){return this.fieldHelpTextComponent.hasExtraTextIconType({testId:e,type:o})}getSelectedLabel({testId:e}){return this.page.getByTestId(n(e,r.BUTTON_CONTENT)).textContent()}async searchForItem({testId:e,searchTerm:o}){return await this.openDropdownComponent({testId:e}),await this.page.getByTestId(n(e,c.FIELD)).fill(o),this.page.getByTestId(n(e,r.LIST_CONTAINER)).locator("ul > li span").first().textContent()}isErrorText({testId:e}){return this.page.getByTestId(n(e,r.TRIGGER)).locator(".state-error").isVisible()}async isDisabled({testId:e}){return(await this.page.getByTestId(n(e,r.TRIGGER)).locator(".button__container--disabled")).isVisible()}async clearAllOptions({testId:e}){await this.page.getByTestId(n(e,r.ACTION_CLEAR_ALL)).click()}isSelectAllChecked({testId:e}){return this.page.getByTestId(n(e,r.SELECT_ALL)).locator(".checkbox.input").isChecked()}isSelectAllIndeterminate({testId:e}){return this.page.getByTestId(n(e,r.SELECT_ALL)).locator(".icon.indeterminate").isVisible()}async removeChipSelection({testId:e}){await this.page.getByTestId(n(e,r.BUTTON_CLEAR)).click()}getDropdownOptions({testId:e}){return this.page.getByTestId(n(e,r.LIST_CONTAINER)).locator(".list").allTextContents()}}class f extends S{constructor(t){super(t)}getDropdownTitle({testId:t}){return this.page.getByTestId(n(t,r.WRAPPER)).locator("label > span").textContent()}getSelectedItem({testId:t}){return this.page.getByTestId(n(t,r.TRIGGER)).locator("button > span").textContent()}async searchForItem({testId:t,searchTerm:e}){return await this.openDropdownComponent({testId:t}),await this.page.getByTestId(n(t,m.FIELD)).fill(e),this.page.getByTestId(n(t,r.LIST_CONTAINER)).locator("ul > li span").first().textContent()}}class V{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${s.TRIGGER}']`;await this.page.waitForSelector(e)}async clickOnApply(t){await this.page.getByTestId(n(t,s.ACTION_APPLY)).click()}async clickOnCancel(t){await this.page.getByTestId(n(t,s.ACTION_CANCEL)).click()}async openIncludeExcludeComponent(t){await this.page.getByTestId(n(t,s.TRIGGER)).click()}async searchForItem({testId:t,searchTerm:e}){return await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.SEARCH)).locator("input.transparent").fill(e),this.page.getByTestId(n(t,s.LIST)).locator("ul > li .v-popper span").first().textContent()}async selectItemByName({testId:t,entityName:e}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.LIST)).locator("ul > li .v-popper span",{hasText:e}).first().click(),await this.clickOnApply(t)}async selectItemByIndex({testId:t,index:e,applyChanges:o}){await this.clearAll({testId:t}),await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.LIST)).locator(".include-exclude-list ul > li").nth(e).click(),await this.page.waitForSelector("include-exclude-list-header-loading",{state:"hidden"}),o&&await this.clickOnApply(t)}async selectMultipleItems({testId:t,itemsToSelect:e}){await this.clearAll({testId:t}),await this.openIncludeExcludeComponent(t);for(const o of e)await this.page.getByTestId(n(t,s.LIST)).locator(".include-exclude-list ul > li").nth(o).click()}async unselectItemByName({testId:t,entityName:e}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.LIST_SELECTED)).locator("ul > li",{hasText:e}).locator(".clear-button").click(),await this.clickOnApply(t)}async unselectByIndex({testId:t,index:e,applyChanges:o}){await this.page.getByTestId(n(t,s.LIST_SELECTED)).locator("ul li button").nth(e).click(),o&&await this.clickOnApply(t)}async getSelectedCounter(t){return await this.page.getByTestId(n(t,s.LIST_SELECTED)).locator(".include-exclude-selected-header-left span").textContent()}async clearAll({testId:t}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.CLEAR_ALL)).click(),await this.clickOnApply(t)}getTriggerText({testId:t}){return this.page.getByTestId(n(t,s.TRIGGER)).locator(".include-exclude-trigger-middle-section .container span").first().textContent()}getTriggerDescription({testId:t}){return this.page.getByTestId(n(t,s.TRIGGER)).locator("div span.include-exclude-trigger-description").first().textContent()}async selectAll({testId:t}){await this.openIncludeExcludeComponent(t),await this.page.getByTestId(n(t,s.SELECT_ALL)).click(),await this.clickOnApply(t)}}class N{constructor(t){l(this,"page");this.page=t}getInputsFieldText({testId:t}){return this.page.getByTestId(n(t,c.FIELD)).inputValue()}getPlaceholderText({testId:t}){return this.page.getByTestId(n(t,c.FIELD)).getAttribute("placeholder")}getInputsType({testId:t}){return this.page.getByTestId(n(t,c.FIELD)).getAttribute("type")}async addInput({testId:t,text:e}){await this.page.getByTestId(n(t,c.FIELD)).type(e)}async clearInput({testId:t}){await this.page.getByTestId(n(t,c.FIELD)).clear()}isDisabled({testId:t}){return this.page.getByTestId(n(t,c.FIELD)).isDisabled()}}class X extends N{constructor(e){super(e);l(this,"fieldLabelComponent");l(this,"fieldHelpTextComponent");this.fieldLabelComponent=new E(e),this.fieldHelpTextComponent=new L(e)}getInputsLabelText({testId:e}){return this.fieldLabelComponent.getLabelText({testId:e})}async waitForComponent({testId:e}){const o=`[data-testid='${e}-${c.WRAPPER}']`;await this.page.waitForSelector(o)}isInputMandatory({testId:e}){return this.fieldLabelComponent.isMandatory({testId:e})}hasInputExtraText({testId:e}){return this.fieldHelpTextComponent.hasExtraText({testId:e})}getInputExtraText({testId:e}){return this.fieldHelpTextComponent.getExtraText({testId:e})}async clickOnApplyButton({testId:e}){await(await this.page.getByTestId(n(e,c.WRAPPER)).locator(".icon.icon-name--check")).click()}hasInlineErrorText({testId:e}){return this.page.getByTestId(n(e,c.TOOLTIP)).isVisible()}async getInlineErrorText({testId:e}){const o=await this.page.getByTestId(n(e,c.TOOLTIP));return await o.hover(),o.getAttribute("text")}async clickOnShowPassword({testId:e}){await this.isPasswordHidden({testId:e})&&await this.clickOnPasswordIcon({testId:e})}async clickOnPasswordIcon({testId:e}){await this.page.getByTestId(n(e,c.TOGGLE_PASSWORD)).click()}async clickOnHidePassword({testId:e}){await this.isPasswordHidden({testId:e})||await this.clickOnPasswordIcon({testId:e})}isPasswordHidden({testId:e}){return this.page.getByTestId(n(e,c.TOGGLE_PASSWORD)).locator(".icon.icon-name--eye-slash").isVisible()}async clearInput({testId:e}){const o=await this.page.getByTestId(n(e,c.FIELD));await o.click({clickCount:2}),await o.type("")}hasExtraTextIconType({testId:e,type:o}){return this.fieldHelpTextComponent.hasExtraTextIconType({testId:e,type:o})}async isDisabled({testId:e}){return(await this.page.getByTestId(n(e,c.FIELD))).isDisabled()}hasApplyButton({testId:e}){return this.page.getByTestId(n(e,c.WRAPPER)).locator(".icon.icon-name--check").isVisible()}async getMaxLengthNumber({testId:e}){return(await this.getFontCaptionText({testId:e}))[1]}async getActualNumberLength({testId:e}){return(await this.getFontCaptionText({testId:e}))[0]}async getFontCaptionText({testId:e}){return(await this.page.getByTestId(n(e,c.WRAPPER)).locator(".font-caption").textContent()).split("/").map(h=>parseInt(h.trim(),10))}getHelpIconText({testId:e}){return this.fieldLabelComponent.getHelpIconText({testId:e})}}class U{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${u.WRAPPER}']`;await this.page.waitForSelector(e)}getSelectedTabText({testId:t}){return this.page.getByTestId(n(t,u.WRAPPER)).locator(".tab-item--active").textContent()}async selectTab({testId:t,tabName:e}){const o=await this.getTabIndex({testId:t,tabName:e});await this.page.getByTestId(n(t,`${u.TAB}-${o+1}`)).click()}async getTabIndex({testId:t,tabName:e}){return(await this.page.getByTestId(n(t,u.WRAPPER)).locator(".tab-item").allTextContents()).indexOf(e)}async isTabDisabled({testId:t,tabName:e}){const o=await this.getTabIndex({testId:t,tabName:e});return this.page.getByTestId(n(t,`${u.TAB}-${o}`)).locator(".tab-item--disabled").isVisible()}}class Y{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${I.TRIGGER}']`;await this.page.waitForSelector(e)}getTooltipText({testId:t}){return this.page.getByTestId(`${t}-${I.TRIGGER}`).getAttribute("text")}getTooltipHeaderText({testId:t}){return this.page.getByTestId(`${t}-${I.TRIGGER}`).getAttribute("header")}}const C=".table-row",O=".icon-wrapper",k=".states",P=".table-head-container",_=".table-row.loading";class j{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${p.CONTAINER}']`;await this.page.waitForSelector(e)}getTableRowCount({testId:t}){return this.page.getByTestId(n(t,p.BODY_WRAPPER)).locator(C).count()}async getColumnHeaders({testId:t}){return this.page.getByTestId(n(t,p.TABLE)).locator(P).allTextContents()}getTableLabel({testId:t}){return this.page.getByTestId(n(t,p.HEADER)).innerText()}getTableFooter({testId:t}){return this.page.getByTestId(n(t,p.CONTAINER)).locator(".table-footer").innerText()}async clickOnHeaderByName(t){await this.page.locator(P,{hasText:t}).click()}async searchForItems({testId:t,searchTerm:e}){await this.clearSearchText({testId:t}),await this.page.getByTestId(n(t,c.FIELD)).fill(e),await this.waitForTableToLoad()}async clearSearchText({testId:t}){await this.page.getByTestId(n(t,c.FIELD)).clear(),await this.waitForTableToLoad()}isArrowVisible({testId:t,headerName:e}){return this.page.getByTestId(n(t,p.TABLE)).locator(P,{hasText:e}).locator(".table-sort-icon").isVisible()}async scrollDownTableRows({testId:t}){const e=`[data-testid=${n(t,p.TABLE)}]`;await this.page.focus(e),await this.page.evaluate(o=>{const h=document.querySelector(o);h&&(h.scrollTop=h.scrollHeight)},e),await this.waitForTableToLoad()}async waitForTableToLoad(){await this.page.waitForSelector(_,{state:"hidden"})}async waitingForTableLoadingToAppear(){await this.page.waitForSelector(_)}async expandRow({testId:t,rowValue:e}){await this.page.getByTestId(n(t,p.BODY_WRAPPER)).locator(C,{hasText:e}).locator(O).click()}isRowExpanded({testId:t,rowValue:e}){return this.page.getByTestId(n(t,p.BODY_WRAPPER)).locator(C,{hasText:e}).locator(O).isVisible()}async getExpandedRowContent({testId:t,rowValue:e}){return await this.isRowExpanded({testId:t,rowValue:e})||await this.expandRow({testId:t,rowValue:e}),this.page.getByTestId(n(t,p.BODY_WRAPPER)).locator(C,{hasText:e}).locator(O).textContent()}isEmptyStateVisible({testId:t}){return this.page.getByTestId(n(t,p.TABLE)).locator(".empty-state").isVisible()}getEmptyStateTitle({testId:t}){return this.page.getByTestId(n(t,p.TABLE)).locator(".font-heading-4.title").textContent()}getEmptyStateSubtitle({testId:t}){return this.page.getByTestId(n(t,p.TABLE)).locator(".font-body-1.subtitle").textContent()}async clickOnRowCheckboxByRowValue({testId:t,rowValue:e}){await this.page.getByTestId(n(t,p.TABLE)).locator(C,{hasText:e}).locator(k).click()}getCheckedRowsNumber({testId:t}){return this.page.getByTestId(n(t,p.TABLE)).locator(C).locator(".icon.checked").count()}async clickOnSelectAllCheckbox({testId:t}){await this.page.getByTestId(n(t,p.TABLE)).locator(k).nth(0).click()}getTableLocator({testId:t}){return this.page.getByTestId(n(t,p.CONTAINER))}}class F{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}']`;await this.page.waitForSelector(e)}async clickOnButton({testId:t}){await this.page.click(`[data-testid='${t}']`)}async isButtonLoading({testId:t}){return(await this.page.getByTestId(t).getAttribute("class")).includes("loading")}async getButtonText({testId:t}){return this.page.getByTestId(t).locator(".font-button").textContent()}isButtonDisabled({testId:t}){return this.page.getByTestId(t).isDisabled()}}class K{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${T.CONTAINER}']`;await this.page.waitForSelector(e)}getSnackbarTitle({testId:t}){return this.page.getByTestId(n(t,T.TITLE)).textContent()}async closeSnackbar({testId:t}){await this.page.getByTestId(n(t,T.CLOSE)).locator(".icon-name--x").click()}async waitForSnackbarToBeClosed({testId:t}){const e=`[data-testid='${t}-${T.CONTAINER}']`;await this.page.waitForSelector(e,{state:"detached"})}getSnackbarDescription({testId:t}){return this.page.getByTestId(n(t,T.MESSAGE)).textContent()}async clickOnActionButton({testId:t,buttonName:e}){const o=await this.getActionButtonIndex({testId:t,buttonName:e}),h=`[data-testid='${t}-${T.ACTION_BUTTON}-${o}']`;await this.page.click(h)}async getActionButtonIndex({testId:t,buttonName:e}){return(await this.page.getByTestId(n(t,T.CONTAINER)).locator(".font-button").allTextContents()).indexOf(e)}}class q{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${y.WRAPPER}']`;await this.page.waitForSelector(e)}async closeMultiBar({testId:t}){await this.page.getByTestId(n(t,y.CLOSE_BTN)).locator(".icon-wrapper").click()}getMultiBarCountText({testId:t}){return this.page.getByTestId(n(t,y.WRAPPER)).locator(".count-text").textContent()}async isMultiBarVisible({testId:t}){return await this.page.waitForTimeout(1e3),this.page.getByTestId(n(t,y.WRAPPER)).locator(".multi-bar-panel").isVisible()}async clickOnActionButton({testId:t,actionButtonId:e}){await this.page.getByTestId(n(t,`${y.ACTION}-${e}`)).locator(".start-icon").click()}}class z{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${w.TEXT}']`;await this.page.waitForSelector(e)}getFormRowTitle({testId:t}){return new E(this.page).getLabelText({testId:t})}isFormRowMandatory({testId:t}){return new E(this.page).isMandatory({testId:t})}getIconText({testId:t}){return new L(this.page).getExtraText({testId:t})}}class J{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${d.CONTENT}']`;await this.page.waitForSelector(e)}getCardTitle({testId:t}){return this.page.getByTestId(n(t,d.TITLE)).textContent()}getCardContentText({testId:t}){return this.page.getByTestId(n(t,d.CONTENT)).textContent()}async clickOnSaveButton({testId:t}){await this.page.getByTestId(n(t,d.SAVE_BUTTON)).click()}async clickOnCancelButton({testId:t}){await this.page.getByTestId(n(t,d.CANCEL_BUTTON)).click()}isSaveButtonLoading({testId:t}){return new F(this.page).isButtonLoading({testId:t})}}class B extends N{constructor(t){super(t)}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${c.WRAPPER}']`;await this.page.waitForSelector(e)}async isViewOnly({testId:t}){return await this.page.getByTestId(n(t,c.WRAPPER)).locator(".view-only.input-type").count()>0}getLabel({testId:t}){return this.page.getByTestId(n(t,c.LABEL_TEXT)).textContent()}isInputMandatory({testId:t}){return this.page.getByTestId(n(t,c.MANDATORY)).isVisible()}hasInputExtraHelpText({testId:t}){return this.page.getByTestId(n(t,c.EXTRA_TEXT)).isVisible()}async getHelpIconText({testId:t}){const e=await this.page.getByTestId(n(t,c.LABEL_CONTAINER)).locator(".v-popper.v-popper--theme-default");return await e.hover(),e.getAttribute("text")}getInputExtraText({testId:t}){return this.page.getByTestId(n(t,c.EXTRA_TEXT)).textContent()}getErrorExtraText({testId:t}){return this.page.getByTestId(n(t,c.EXTRA_TEXT)).locator(".error").textContent()}async showPassword({testId:t}){await this.isPasswordHidden({testId:t})&&await this.clickOnPasswordButton({testId:t})}async isPasswordHidden({testId:t}){return await this.page.getByTestId(n(t,c.WRAPPER)).getAttribute("type")==="password"}async clickOnPasswordButton({testId:t}){await(await this.page.getByTestId(n(t,c.WRAPPER)).locator(".password-visibility")).click()}}class Q{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${m.CONTAINER}']`;await this.page.waitForSelector(e)}async searchInput({testId:t,searchTerm:e}){await new B(this.page).addInput({testId:t,text:e})}async clearInput({testId:t}){await new B(this.page).clearInput({testId:t})}async clickOnXButton({testId:t}){await this.page.getByTestId(n(t,m.CLEAR)).locator(".icon-name--x-circle").click()}isDisabled({testId:t}){return new B(this.page).isDisabled({testId:t})}getSearchPlaceholder({testId:t}){return new B(this.page).getPlaceholderText({testId:t})}getSearchInputValue({testId:t}){return new B(this.page).getInputsFieldText({testId:t})}}class Z{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${b.TEXT}']`;await this.page.waitForSelector(e)}getInlineCopyText({testId:t}){return this.page.getByTestId(`${t}-${b.TEXT}`).textContent()}}class M{constructor(t){l(this,"page");this.page=t}async waitForComponent({testId:t}){const e=`[data-testid='${t}-${R.TITLE}']`;await this.page.waitForSelector(e)}getHeaderTitle({testId:t}){return this.page.getByTestId(`${t}-${R.TITLE}`).textContent()}getInlineCopyText({testId:t}){return new Z(this.page).getInlineCopyText({testId:t})}async isIconPresent({testId:t,iconName:e}){return await this.page.getByTestId(`${t}-${R.APP_PLATFORM}`).getAttribute("data-platform")===e}}i.AppHeaderComponent=M,i.BannerComponent=H,i.ButtonComponent=F,i.ComponentBasePage=W,i.DialogComponent=v,i.DropdownComponent=G,i.DropdownComponentV3=f,i.FieldHelpTextComponent=L,i.FieldLabelComponent=E,i.FormCardComponent=J,i.FormRowComponent=z,i.IncludeExcludeComponent=V,i.InputsComponent=X,i.MultiBarComponent=q,i.SearchComponent=Q,i.SnackbarComponent=K,i.TableComponent=j,i.TabsComponent=U,i.TooltipComponent=Y,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { Page } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
testId: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
2
|
+
import { SearchParams } from '../../global/types.ts';
|
|
6
3
|
export declare class SearchComponent {
|
|
7
4
|
readonly page: Page;
|
|
8
5
|
constructor(page: Page);
|
|
9
6
|
waitForComponent({ testId }: {
|
|
10
7
|
testId: string;
|
|
11
8
|
}): Promise<void>;
|
|
12
|
-
searchInput({ testId,
|
|
9
|
+
searchInput({ testId, searchTerm }: SearchParams): Promise<void>;
|
|
13
10
|
clearInput({ testId }: {
|
|
14
11
|
testId: string;
|
|
15
12
|
}): Promise<void>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Page } from '@playwright/test';
|
|
2
|
-
import { HeaderParams,
|
|
2
|
+
import { HeaderParams, RowValueParams } from './types.ts';
|
|
3
|
+
import { SearchParams } from '../../global/types';
|
|
3
4
|
export declare class TableComponent {
|
|
4
5
|
readonly page: Page;
|
|
5
6
|
constructor(page: Page);
|
|
@@ -9,13 +10,6 @@ export declare class TableComponent {
|
|
|
9
10
|
getTableRowCount({ testId }: {
|
|
10
11
|
testId: string;
|
|
11
12
|
}): Promise<number>;
|
|
12
|
-
getTableRowContentByIndex({ testId, index }: IndexTableParams): Promise<string>;
|
|
13
|
-
getTableRowsByRowValue({ testId, headerName, rowValue, }: RowValueParams): Promise<any[]>;
|
|
14
|
-
getRowIndicesByRowValue({ testId, headerName, rowValue, }: RowValueParams): Promise<number[]>;
|
|
15
|
-
private getIndicesOf;
|
|
16
|
-
getColumnValuesByHeader({ headerName, testId }: HeaderParams): Promise<any[]>;
|
|
17
|
-
private getColumnIndexByHeader;
|
|
18
|
-
private getColumnValuesByIndex;
|
|
19
13
|
getColumnHeaders({ testId }: {
|
|
20
14
|
testId: string;
|
|
21
15
|
}): Promise<string[]>;
|
|
@@ -25,8 +19,7 @@ export declare class TableComponent {
|
|
|
25
19
|
getTableFooter({ testId }: {
|
|
26
20
|
testId: string;
|
|
27
21
|
}): Promise<string>;
|
|
28
|
-
|
|
29
|
-
clickOnHeaderByName({ testId, headerName }: HeaderParams): Promise<void>;
|
|
22
|
+
clickOnHeaderByName(headerName: string): Promise<void>;
|
|
30
23
|
searchForItems({ testId, searchTerm }: SearchParams): Promise<void>;
|
|
31
24
|
clearSearchText({ testId }: {
|
|
32
25
|
testId: string;
|
|
@@ -36,13 +29,10 @@ export declare class TableComponent {
|
|
|
36
29
|
testId: string;
|
|
37
30
|
}): Promise<void>;
|
|
38
31
|
waitForTableToLoad(): Promise<void>;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}): Promise<void>;
|
|
44
|
-
isRowExpanded({ testId, headerName, rowValue }: RowValueParams): Promise<boolean>;
|
|
45
|
-
getExpandedRowContent({ testId, headerName, rowValue, }: RowValueParams): Promise<string>;
|
|
32
|
+
waitingForTableLoadingToAppear(): Promise<void>;
|
|
33
|
+
expandRow({ testId, rowValue }: RowValueParams): Promise<void>;
|
|
34
|
+
isRowExpanded({ testId, rowValue }: RowValueParams): Promise<boolean>;
|
|
35
|
+
getExpandedRowContent({ testId, rowValue }: RowValueParams): Promise<string>;
|
|
46
36
|
isEmptyStateVisible({ testId }: {
|
|
47
37
|
testId: string;
|
|
48
38
|
}): Promise<boolean>;
|
|
@@ -52,14 +42,14 @@ export declare class TableComponent {
|
|
|
52
42
|
getEmptyStateSubtitle({ testId }: {
|
|
53
43
|
testId: string;
|
|
54
44
|
}): Promise<string>;
|
|
55
|
-
|
|
56
|
-
clickOnRowCheckboxByRowValue({ testId, headerName, rowValue, }: RowValueParams): Promise<void>;
|
|
45
|
+
clickOnRowCheckboxByRowValue({ testId, rowValue }: RowValueParams): Promise<void>;
|
|
57
46
|
getCheckedRowsNumber({ testId }: {
|
|
58
47
|
testId: string;
|
|
59
48
|
}): Promise<number>;
|
|
60
49
|
clickOnSelectAllCheckbox({ testId }: {
|
|
61
50
|
testId: string;
|
|
62
51
|
}): Promise<void>;
|
|
63
|
-
|
|
64
|
-
|
|
52
|
+
getTableLocator({ testId }: {
|
|
53
|
+
testId: string;
|
|
54
|
+
}): import("playwright-core").Locator;
|
|
65
55
|
}
|
|
@@ -6,30 +6,18 @@ export declare class TablePage extends ComponentBasePage {
|
|
|
6
6
|
constructor(page: Page);
|
|
7
7
|
waitForComponent(): Promise<void>;
|
|
8
8
|
getTableRowCount(): Promise<number>;
|
|
9
|
-
getTableRowContentByIndex({ index }: {
|
|
10
|
-
index: number;
|
|
11
|
-
}): Promise<string>;
|
|
12
|
-
getTableRowByRowValue({ rowHeader, rowValue, }: {
|
|
13
|
-
rowHeader: string;
|
|
14
|
-
rowValue: string;
|
|
15
|
-
}): Promise<any[]>;
|
|
16
|
-
getColumnValuesByHeader({ header }: {
|
|
17
|
-
header: string;
|
|
18
|
-
}): Promise<any[]>;
|
|
19
9
|
getTableLabel(): Promise<string>;
|
|
20
10
|
getTableFooter(): Promise<string>;
|
|
21
11
|
searchForItems(searchTerm: string): Promise<void>;
|
|
22
|
-
clickOnSortByHeaderName(headerName: string): Promise<void>;
|
|
23
12
|
isArrowVisible(headerName: string): Promise<boolean>;
|
|
24
13
|
scrollDownTableRows(): Promise<void>;
|
|
25
14
|
isEmptyStateVisible(): Promise<boolean>;
|
|
26
15
|
getEmptyStateTitle(): Promise<string>;
|
|
27
16
|
getEmptyStateSubtitle(): Promise<string>;
|
|
28
|
-
clickOnRowCheckboxByIndex(index: number): Promise<void>;
|
|
29
|
-
clickOnRowCheckboxByRowValue({ rowHeader, rowValue, }: {
|
|
30
|
-
rowHeader: string;
|
|
31
|
-
rowValue: string;
|
|
32
|
-
}): Promise<void>;
|
|
33
17
|
getCheckedRowsNumber(): Promise<number>;
|
|
34
18
|
clickOnSelectAllCheckbox(): Promise<void>;
|
|
19
|
+
getColumnHeaders(): Promise<string[]>;
|
|
20
|
+
clickOnHeaderByName(headerName: string): Promise<void>;
|
|
21
|
+
clickOnRowCheckboxByRowValue(rowValue: string): Promise<void>;
|
|
22
|
+
getTableLocator(): import("playwright-core").Locator;
|
|
35
23
|
}
|
|
@@ -2,17 +2,12 @@ export type HeaderParams = {
|
|
|
2
2
|
testId: string;
|
|
3
3
|
headerName: string;
|
|
4
4
|
};
|
|
5
|
-
export type SearchParams = {
|
|
6
|
-
testId: string;
|
|
7
|
-
searchTerm: string;
|
|
8
|
-
};
|
|
9
5
|
export type IndexTableParams = {
|
|
10
6
|
testId: string;
|
|
11
7
|
index: number;
|
|
12
8
|
};
|
|
13
9
|
export type RowValueParams = {
|
|
14
10
|
testId: string;
|
|
15
|
-
headerName: string;
|
|
16
11
|
rowValue: string;
|
|
17
12
|
};
|
|
18
13
|
export type IndicesOfParams = {
|
package/tests/global/types.d.ts
CHANGED
package/tests/index.d.ts
CHANGED
|
@@ -4,16 +4,22 @@ export * from './components/base-page/component-base-page';
|
|
|
4
4
|
export * from './components/dialog/dialog-component';
|
|
5
5
|
export * from './components/dropdown/dropdown-v4/dropdown-component';
|
|
6
6
|
export * from './components/dropdown/dropdown-v3/dropdown-component';
|
|
7
|
+
export * from './components/dropdown/types.ts';
|
|
7
8
|
export * from './components/fieldHelpText/field-help-text-component';
|
|
8
9
|
export * from './components/fieldLabel/field-label-component';
|
|
9
10
|
export * from './components/includeExclude/include-exclude-component';
|
|
10
11
|
export * from './components/inputs/input-v4/inputs-component';
|
|
12
|
+
export * from './components/inputs/types';
|
|
11
13
|
export * from './components/tabs/tabs-component';
|
|
12
14
|
export * from './components/tooltip/tooltip-component';
|
|
13
15
|
export * from './components/table/table-component';
|
|
16
|
+
export * from './components/table/types';
|
|
14
17
|
export * from './components/button/button-component';
|
|
15
18
|
export * from './components/snackbar/snackbar-component';
|
|
16
19
|
export * from './components/multibar/multibar-component';
|
|
17
20
|
export * from './components/formRow/form-row-component';
|
|
18
21
|
export * from './components/formCard/form-card-component';
|
|
19
22
|
export * from './components/search/search-component';
|
|
23
|
+
export * from './components/appHeader/app-header-component.ts';
|
|
24
|
+
export * from './components/formCard/form-card-component.ts';
|
|
25
|
+
export * from './components/formRow/form-row-component.ts';
|