Contact import automation #4394
Annotations
5 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"
>
<h1>
Bulk contacts upload
</h1>
<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"
data-testid="uploadContactsBtn"
tabindex="0"
type="button"
>
Upload Contacts
<span
class="MuiTouchRipple-root css-8je8zh-MuiTouchRipple-root"
/>
</button>
</div>
</div>
<div
class="_Container_12bf54"
>
<h1>
Move contacts
</h1>
<div
class="_Instructions_12bf54"
>
You can move contacts to collections in bulk or update their contact information. Please create csv file that exactly matches the sample. Here are the
<a
class="_Link_12bf54"
href="https://glific.github.io/docs/docs/FAQ/Update%20collection%20with%20bulk%20contacts%20or%20contact%20fields/"
rel="noreferrer"
target="_blank"
>
detailed instructions.
</a>
</div>
<div
class="_UploadContainer_12bf54"
>
<label
class="_UploadEnabled_12bf54 _Upload_12bf54"
for="uploadFile"
>
<span>
<svg
class="_FileIcon_12bf54"
height="18px"
viewBox="0 0 18 18"
width="18px"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<title>
|
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/
|