Skip to content

Commit 6d720df

Browse files
committed
test: Fix cypress test cases
1 parent 2a876c8 commit 6d720df

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: cypress/fixtures/templates/ChatBotApp.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ function App() {
123123
},
124124
loop: {
125125
message: (params: Params) => {
126-
// sends the message half a second later to facilitate testing of new message prompt
126+
// sends the message 5 seconds later to facilitate testing of new message prompt
127+
// it is set to 5 seconds because running on hosted CI may be slow sometimes
127128
setTimeout(async () => {
128129
await params.injectMessage("You have reached the end of the conversation!");
129-
}, 500)
130+
}, 5000)
130131
},
131132
path: "loop"
132133
},

Diff for: src/App.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,11 @@ function App() {
123123
},
124124
loop: {
125125
message: (params: Params) => {
126-
// sends the message a second later to facilitate testing of new message prompt
126+
// sends the message 5 seconds later to facilitate testing of new message prompt
127+
// it is set to 5 seconds because running on hosted CI may be slow sometimes
127128
setTimeout(async () => {
128129
await params.injectMessage("You have reached the end of the conversation!");
129-
}, 1000)
130+
}, 5000)
130131
},
131132
path: "loop"
132133
},

0 commit comments

Comments
 (0)