Contact import automation #4392
Annotations
6 errors and 2 warnings
src/containers/ContactManagement/ContactManagement.test.tsx > Show unauthorized access for staff user:
src/containers/ContactManagement/ContactManagement.test.tsx#L24
TestingLibraryElementError: Unable to find an element with the text: Unauthorized access. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_Heading_7e7077"
data-testid="heading"
>
<div
class="_HeadingWrapper_7e7077"
>
<div
class="_BackIcon_7e7077"
/>
<div>
<div
class="_HeadingTitle_7e7077"
>
<div
class="_TitleText_7e7077"
>
Contact Management
</div>
</div>
<div
class="_TextHeading_7e7077"
/>
</div>
</div>
</div>
<div
class="_MainContainer_a54b40"
>
<div
class="_Container_a54b40"
>
<div
class="_Instructions_0fb67d"
>
<div>
<h5>
Instructions
</h5>
<ul>
<li>
Use this to import new contacts in bulk
</li>
<li>
Ensure you have prior permission from the contacts to message them through the chatbot
</li>
<li>
Ensure the first message being sent to the newly onboarded contacts is the opt-in message
</li>
<li>
Further detailed instructions here.
</li>
</ul>
</div>
<div>
<h5>
Disclaimer
</h5>
<ul>
<li>
Contacts who block a chatbot number leads to the reduction in quality rating of the chatbot by Meta. This can reduce the limit of business initiated conversations.
</li>
<li>
Kindly plan to message large number of new contacts in batches to avoid having quality reduced or having your chatbot blocked by Meta.
</li>
</ul>
</div>
</div>
<div
class="_Buttons_a54b40"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary _Button_795060 undefined css-sghohy-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Upload Contacts
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
<a
href="https://storage.googleapis.com/cc-tides/sample_import.csv"
>
Download Sample
</a>
</div>
</div>
</div>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/containers/ContactManagement/ContactManagement.test.tsx:24:17
|
src/containers/InteractiveMessage/InteractiveMessage.test.tsx > translates the template > it shows warning if contents are trimmed:
src/containers/InteractiveMessage/InteractiveMessage.test.tsx#L532
TestingLibraryElementError: Unable to find an element with the text: Translations exceeding limit.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body
style=""
>
<div />
<div>
<div
class="_ItemAdd_787cd5"
data-testid="add-container"
>
<div
class="_Heading_7e7077"
data-testid="heading"
>
<div
class="_HeadingWrapper_7e7077"
>
<div
class="_BackIcon_7e7077"
>
<svg
data-testid="back-button"
fill="none"
height="40"
viewBox="0 0 40 40"
width="40"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="20"
cy="20"
fill="white"
r="19.5"
stroke="#CCCCCC"
/>
<path
d="M22.9292 28L15 20L22.9292 12L24.3333 13.4167L17.8083 20L24.3333 26.5833L22.9292 28Z"
fill="#717971"
/>
</svg>
</div>
<div>
<div
class="_HeadingTitle_7e7077"
>
<div
class="_TitleText_7e7077"
>
Edit Interactive message
</div>
</div>
<div
class="_TextHeading_7e7077"
>
Please enter below details.
</div>
</div>
</div>
</div>
<form>
<div
class="_Form_787cd5 "
data-testid="formLayout"
>
<div
class="_Wrapper_d262a6"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary _Button_795060 undefined css-1rwt2y5-MuiButtonBase-root-MuiButton-root"
data-testid="translateBtn"
tabindex="0"
type="button"
>
<svg
fill="none"
height="18"
viewBox="0 0 18 18"
width="16"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M15.7917 9H14.2917C14.0928 9 13.902 9.07902 13.7614 9.21968C13.6207 9.36033 13.5417 9.55109 13.5417 9.75C13.5417 9.94892 13.6207 10.1397 13.7614 10.2803C13.902 10.421 14.0928 10.5 14.2917 10.5V12H13.4035C13.4924 11.7598 13.5392 11.5061 13.5417 11.25C13.5418 10.7547 13.3784 10.2732 13.0769 9.88023C12.7754 9.48726 12.3526 9.20478 11.8742 9.07661C11.3957 8.94844 10.8884 8.98176 10.4308 9.17139C9.97321 9.36101 9.591 9.69635 9.34347 10.1254C9.29375 10.2107 9.26137 10.305 9.24821 10.4029C9.23504 10.5008 9.24133 10.6003 9.26673 10.6958C9.29213 10.7912 9.33613 10.8807 9.39621 10.9591C9.45629 11.0375 9.53126 11.1032 9.61682 11.1526C9.70238 11.2019 9.79684 11.2339 9.89478 11.2466C9.99273 11.2593 10.0922 11.2526 10.1875 11.2268C10.2829 11.2009 10.3722 11.1565 10.4503 11.0961C10.5284 11.0357 10.5938 10.9604 10.6428 10.8746C10.7087 10.7608 10.8033 10.6663 10.9172 10.6006C11.0311 10.5348 11.1602 10.5001 11.2917 10.5C11.4906 10.5 11.6814 10.579 11.822 10.7197C11.9627 10.8603 12.0417 11.0511 12.0417 11.25C12.0417 11.4489 11.9627 11.6397 11.822 11.7803C11.6814 11.921 11.4906 12 11.2917 12C11.0928 12 10.902 12.079 10.7614 12.2197C10.6207 12.3603 10.5417 12.5511 10.5417 12.75C10.5417 12.9489 10.6207 13.1397 10.7614 13.2803C10.902 13.421 11.0928 13.5 11.2917 13.5C11.4906 13.5 11.6814 13.579 11.822 13.7197C11.9627 13.8603 12.0417 14.0511 12.0417 14.25C12.0417 14.4489 11.9627 14.6397 11.822 14.7803C11.6814 14.921 11.4906 15 11.2917 15C11.1602 14.9999 11.0311 14.9652 10.9172 14.8994C10.8033 14.8337 10.
|
src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx > Upload contact dialog renders correctly:
src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx#L35
TestingLibraryElementError: Unable to find an element with the text: Upload contacts: Glific. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_CenterItems_f565a9 false"
data-testid="loader"
>
<div
class="_LoadingPadding_f565a9"
>
<span
class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-18lrjg1-MuiCircularProgress-root"
role="progressbar"
style="width: 40px; height: 40px;"
>
<svg
class="MuiCircularProgress-svg css-1idz92c-MuiCircularProgress-svg"
viewBox="22 22 44 44"
>
<circle
class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-176wh8e-MuiCircularProgress-circle"
cx="44"
cy="44"
fill="none"
r="20.2"
stroke-width="3.6"
/>
</svg>
</span>
</div>
<h5
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
>
Loading...
</h5>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="_CenterItems_f565a9 false"
data-testid="loader"
>
<div
class="_LoadingPadding_f565a9"
>
<span
class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-18lrjg1-MuiCircularProgress-root"
role="progressbar"
style="width: 40px; height: 40px;"
>
<svg
class="MuiCircularProgress-svg css-1idz92c-MuiCircularProgress-svg"
viewBox="22 22 44 44"
>
<circle
class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-176wh8e-MuiCircularProgress-circle"
cx="44"
cy="44"
fill="none"
r="20.2"
stroke-width="3.6"
/>
</svg>
</span>
</div>
<h5
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
>
Loading...
</h5>
</div>
</div>
</body>
</html>...
❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx:35:9
|
src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx > Files other than .csv should raise a warning message upon upload:
src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx#L44
TestingLibraryElementError: Unable to find an element by: [data-testid="uploadFile"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_CenterItems_f565a9 false"
data-testid="loader"
>
<div
class="_LoadingPadding_f565a9"
>
<span
class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-18lrjg1-MuiCircularProgress-root"
role="progressbar"
style="width: 40px; height: 40px;"
>
<svg
class="MuiCircularProgress-svg css-1idz92c-MuiCircularProgress-svg"
viewBox="22 22 44 44"
>
<circle
class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-176wh8e-MuiCircularProgress-circle"
cx="44"
cy="44"
fill="none"
r="20.2"
stroke-width="3.6"
/>
</svg>
</span>
</div>
<h5
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
>
Loading...
</h5>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="_CenterItems_f565a9 false"
data-testid="loader"
>
<div
class="_LoadingPadding_f565a9"
>
<span
class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-18lrjg1-MuiCircularProgress-root"
role="progressbar"
style="width: 40px; height: 40px;"
>
<svg
class="MuiCircularProgress-svg css-1idz92c-MuiCircularProgress-svg"
viewBox="22 22 44 44"
>
<circle
class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-176wh8e-MuiCircularProgress-circle"
cx="44"
cy="44"
fill="none"
r="20.2"
stroke-width="3.6"
/>
</svg>
</span>
</div>
<h5
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
>
Loading...
</h5>
</div>
</div>
</body>
</html>...
❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx:44:9
|
src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx > Should be able to upload valid CSV:
src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx#L62
TestingLibraryElementError: Unable to find an element by: [data-testid="uploadFile"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_CenterItems_f565a9 false"
data-testid="loader"
>
<div
class="_LoadingPadding_f565a9"
>
<span
class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-18lrjg1-MuiCircularProgress-root"
role="progressbar"
style="width: 40px; height: 40px;"
>
<svg
class="MuiCircularProgress-svg css-1idz92c-MuiCircularProgress-svg"
viewBox="22 22 44 44"
>
<circle
class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-176wh8e-MuiCircularProgress-circle"
cx="44"
cy="44"
fill="none"
r="20.2"
stroke-width="3.6"
/>
</svg>
</span>
</div>
<h5
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
>
Loading...
</h5>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="_CenterItems_f565a9 false"
data-testid="loader"
>
<div
class="_LoadingPadding_f565a9"
>
<span
class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary css-18lrjg1-MuiCircularProgress-root"
role="progressbar"
style="width: 40px; height: 40px;"
>
<svg
class="MuiCircularProgress-svg css-1idz92c-MuiCircularProgress-svg"
viewBox="22 22 44 44"
>
<circle
class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate css-176wh8e-MuiCircularProgress-circle"
cx="44"
cy="44"
fill="none"
r="20.2"
stroke-width="3.6"
/>
</svg>
</span>
</div>
<h5
class="MuiTypography-root MuiTypography-h5 css-ag7rrr-MuiTypography-root"
>
Loading...
</h5>
</div>
</div>
</body>
</html>...
❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/containers/ContactManagement/UploadContactsDialog/UploadContactsDialog.test.tsx:62:9
|
CI
Process completed with exit code 1.
|
CI
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
CI
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|