Skip to content

Commit cdfd233

Browse files
committed
fail fast test
1 parent 54338e4 commit cdfd233

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

apps/remix-ide-e2e/src/tests/ai_panel.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = {
2424
// Conversation starter button with data id 'explain-editor' doesn't exist anymore
2525
'Should explain the contract #group1': function (browser: NightwatchBrowser) {
2626
browser
27-
.clickLaunchIcon('remixaiassistant')
27+
.clickLaunchIcon('remixaiassistanthoihoih')
2828
.waitForElementVisible('*[data-id="remix-ai-assistant-starter-0"]')
2929
.click('*[data-id="remix-ai-assistant-starter-0"]')
3030
.waitForElementVisible('*[data-id="remix-ai-assistant"]')

apps/remix-ide/ci/browser_test.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ for TESTFILE in $TESTFILES; do
2121
done
2222

2323
echo "$TEST_EXITCODE"
24-
if [ "$TEST_EXITCODE" -eq 1 ]
25-
then
24+
# Fail the test early and cancel the workflow
25+
if [ "$TEST_EXITCODE" -eq 1 ]; then
26+
echo "❌ Test failed. Attempting to cancel the workflow..."
27+
curl -s -X POST "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel" \
28+
-H "Circle-Token: $CIRCLECI_TOKEN" \
29+
-H "Content-Type: application/json"
2630
exit 1
2731
fi

projects.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4362,7 +4362,7 @@
43624362
"hash": "b99ed2d6b005cdaeffe543b9f95b0c1ccafee7f3"
43634363
},
43644364
{
4365-
"file": "apps/remix-ide/ci/singletest",
4365+
"file": "apps/remix-ide/ci/singletest.sh",
43664366
"hash": "15fefe4c3eae0f283031043bc3c491679e23cf39"
43674367
},
43684368
{

0 commit comments

Comments
 (0)