Skip to content

Commit 81c6ea7

Browse files
sluFicodesSHENGXING LU
andauthored
new tag and test system (#151)
Co-authored-by: SHENGXING LU <slu@SHENGXINGs-MacBook-Air.local>
1 parent 1cf7605 commit 81c6ea7

2 files changed

Lines changed: 19 additions & 4 deletions

File tree

.github/workflows/system-testing.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,13 @@ jobs:
9090
9191
# Trigger E2E tests in E2E-DOME-BAE repository
9292
echo "Triggering E2E tests..."
93-
curl -X POST \
93+
HTTP_STATUS=$(curl -X POST \
9494
-H "Authorization: token ${{ secrets.ADMIN }}" \
9595
-H "Accept: application/vnd.github.everest-preview+json" \
9696
-H "Content-Type: application/json" \
97+
-w "%{http_code}" \
98+
-o /dev/null \
99+
-s \
97100
-d "{
98101
\"event_type\": \"cross-repo-test\",
99102
\"client_payload\": {
@@ -107,6 +110,18 @@ jobs:
107110
\"pull_request_url\": \"${{ github.event.pull_request.html_url }}\"
108111
}
109112
}" \
110-
https://api.github.com/repos/sluFicodes/E2E-DOME-BAE/dispatches
113+
https://api.github.com/repos/sluFicodes/E2E-DOME-BAE/dispatches)
111114
112-
echo "E2E tests triggered successfully!"
115+
echo "HTTP Status: $HTTP_STATUS"
116+
117+
if [ "$HTTP_STATUS" -eq 204 ] || [ "$HTTP_STATUS" -eq 200 ]; then
118+
echo "E2E tests triggered successfully!"
119+
else
120+
echo "Failed to trigger E2E tests. HTTP Status: $HTTP_STATUS"
121+
if [ "$HTTP_STATUS" -eq 401 ]; then
122+
echo "Error: Unauthorized. Check if the ADMIN token has the correct permissions."
123+
elif [ "$HTTP_STATUS" -eq 404 ]; then
124+
echo "Error: Repository not found or token doesn't have access."
125+
fi
126+
exit 1
127+
fi

src/app/pages/product-orders/sections/order-info/order-info.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ <h3 class="text-base dark:text-gray-200">
448448
<path d="M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5L321 99.1l19-5.8c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1l-5.8 19 17.5 9.3c20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7L412.9 321l5.8 19c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7l-19-5.8-9.3 17.5c-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5L191 412.9l-19 5.8c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340l5.8-19-17.5-9.3C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7L99.1 191l-5.8-19c-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2l19 5.8 9.3-17.5zM256 0c-35.9 0-67.8 17-88.1 43.4c-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM369 209l17-17L352 158.1l-17 17-111 111-47-47-17-17L126.1 256l17 17 64 64 17 17 17-17L369 209z"/>
449449
</svg>
450450
</button>
451-
<button type="button" title="Order Completely Failed"
451+
<button data-cy="failOrder" type="button" title="Order Completely Failed"
452452
class="text-red-950 bg-red-500 hover:bg-red-600 focus:ring-4 focus:outline-none focus:ring-red-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center me-2"
453453
(click)="openModal('failed', item)">
454454
<svg class="w-[18px] h-[18px] text-white stroke-white fill-white stroke-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

0 commit comments

Comments
 (0)