Contact import automation #4395
Annotations
7 errors and 2 warnings
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>
<h2>
Bulk contacts upload
</h2>
<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>
<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"
>
<div>
<h2>
Move contacts
</h2>
<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"
|
src/containers/ContactManagement/AdminContactManagement/AdminContactManagement.test.tsx#L46
TestingLibraryElementError: Unable to find an element by: [data-testid="uploadButton"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_Container_12bf54"
>
<div>
<h2>
Move contacts
</h2>
<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>
Icon/Document/Light
</title>
<g
fill="none"
fill-rule="evenodd"
id="Symbols"
stroke="none"
stroke-width="1"
>
<g
id="Icon/Document/Light"
stroke="#93A29B"
stroke-width="2"
>
<path
d="M5,1 L10.2014057,1 C10.7417864,1 11.2591706,1.21866769 11.6357576,1.60621569 L14.4343519,4.48626597 C14.7970839,4.85955568 15,5.35955079 15,5.88005028 L15,15 C15,16.1045695 14.1045695,17 13,17 L5,17 C3.8954305,17 3,16.1045695 3,15 L3,3 C3,1.8954305 3.8954305,1 5,1 Z"
id="Rectangle"
/>
<path
d=""
id="Path-28"
/>
</g>
</g>
</svg>
Select file
<input
data-testid="uploadFile"
id="uploadFile"
type="file"
/>
</span>
</label>
<div
class="_Sample_12bf54"
>
<a
href="https://storage.googleapis.com/cc-tides/sample_import_admin.csv"
>
Download Sample
</a>
</div>
</div>
</div>
<div
class="_Buttons_12bf54"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary _Button_795060 undefined css-sghohy-MuiButtonBase-root-MuiButton-root"
data-testid="moveContactsBtn"
disabled=""
tabindex="-1"
type="button"
>
<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>
Icon/Upload/Light
</title>
<g
fill="none"
fill-rule="evenodd"
id="Symbols"
stroke="none"
stroke-linecap="round"
stroke-width="1"
>
<g
id="Icon/Upload/Light"
stroke="#fff"
stroke-width="2"
>
<g
id="Group"
transform="translate(9.000000, 7.000000)
|
src/containers/ContactManagement/AdminContactManagement/AdminContactManagement.test.tsx#L84
TestingLibraryElementError: Unable to find an element by: [data-testid="uploadButton"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="_Container_12bf54"
>
<div>
<h2>
Move contacts
</h2>
<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>
Icon/Document/Light
</title>
<g
fill="none"
fill-rule="evenodd"
id="Symbols"
stroke="none"
stroke-width="1"
>
<g
id="Icon/Document/Light"
stroke="#93A29B"
stroke-width="2"
>
<path
d="M5,1 L10.2014057,1 C10.7417864,1 11.2591706,1.21866769 11.6357576,1.60621569 L14.4343519,4.48626597 C14.7970839,4.85955568 15,5.35955079 15,5.88005028 L15,15 C15,16.1045695 14.1045695,17 13,17 L5,17 C3.8954305,17 3,16.1045695 3,15 L3,3 C3,1.8954305 3.8954305,1 5,1 Z"
id="Rectangle"
/>
<path
d=""
id="Path-28"
/>
</g>
</g>
</svg>
<span>
test.csv
</span>
<svg
class="_CrossIcon_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>
Icon/Cross
</title>
<g
fill="none"
fill-rule="evenodd"
id="Symbols"
stroke="none"
stroke-width="1"
>
<g
id="Icon/Cross"
stroke="#93A29B"
stroke-width="2"
>
<g>
<circle
cx="9"
cy="9"
id="Oval"
r="8"
/>
<line
id="Path-4"
stroke-linecap="round"
x1="12"
x2="6"
y1="6"
y2="12.00754"
/>
<line
id="Path-4"
stroke-linecap="round"
transform="translate(9.000000, 9.003770) scale(-1, 1) translate(-9.000000, -9.003770) "
x1="12"
x2="6"
y1="6"
y2="12.00754"
/>
</g>
</g>
</g>
</svg>
<input
data-testid="uploadFile"
disabled=""
|
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#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#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
|
|
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/
|
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/
|
The logs for this run have expired and are no longer available.
Loading