File tree Expand file tree Collapse file tree 4 files changed +8
-15
lines changed Expand file tree Collapse file tree 4 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,6 @@ beforeEach(() => {
19
19
cy . intercept ( 'https://api-iam.intercom.io/messenger/web/conversations' ) . as (
20
20
'intercomConversations' ,
21
21
) ;
22
- cy . intercept (
23
- 'https://api-iam.intercom.io/messenger/web/self_serve_suggestions' ,
24
- ) . as ( 'intercomSelfServeSuggestions' ) ;
25
22
} ) ;
26
23
27
24
describe ( 'provider' , ( ) => {
@@ -86,13 +83,13 @@ describe('provider with events', () => {
86
83
cy . get ( 'iframe[name="intercom-messenger-frame"]' ) . then ( ( $iframe ) => {
87
84
const $body = $iframe . contents ( ) . find ( 'body' ) ;
88
85
89
- cy . wrap ( $body ) . contains ( 'Ask a question ' ) . click ( ) ;
86
+ cy . wrap ( $body ) . contains ( 'Send us a message ' ) . click ( ) ;
90
87
91
88
cy . wait ( '@intercomHome' ) ;
92
89
cy . wait ( '@intercomConversations' ) ;
93
90
94
91
cy . wrap ( $body )
95
- . find ( 'textarea[name="message"] ' )
92
+ . find ( 'textarea' )
96
93
. should ( 'exist' )
97
94
. type ( 'hello' )
98
95
. type ( '{enter}' ) ;
@@ -106,8 +103,6 @@ describe('provider with events', () => {
106
103
. type ( 'hello@email.com' )
107
104
. type ( '{enter}' ) ;
108
105
109
- cy . wait ( '@intercomSelfServeSuggestions' ) ;
110
-
111
106
cy . get ( '[data-cy=onUserEmailSuppliedText]' ) . should (
112
107
'have.text' ,
113
108
'on user email supplied was called' ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ describe('show', () => {
27
27
. then ( ( $iframe ) => {
28
28
const $body = $iframe . contents ( ) . find ( 'body' ) ;
29
29
30
- cy . wrap ( $body ) . contains ( 'Ask a question ' ) ;
30
+ cy . wrap ( $body ) . contains ( 'Send us a message ' ) ;
31
31
} ) ;
32
32
} ) ;
33
33
} ) ;
@@ -60,7 +60,7 @@ describe('showNewMessage', () => {
60
60
. then ( ( $iframe ) => {
61
61
const $body = $iframe . contents ( ) . find ( 'body' ) ;
62
62
63
- cy . wrap ( $body ) . contains ( 'Ask for the team if needed ' ) ;
63
+ cy . wrap ( $body ) . contains ( 'Ask us anything, or share your feedback. ' ) ;
64
64
cy . wrap ( $body ) . find ( 'button[data-testid="go-back"]' ) . should ( 'exist' ) ;
65
65
} ) ;
66
66
} ) ;
@@ -79,7 +79,7 @@ describe('showNewMessage', () => {
79
79
80
80
cy . wrap ( $body ) . find ( 'button[data-testid="go-back"]' ) . should ( 'exist' ) ;
81
81
cy . wrap ( $body )
82
- . find ( 'textarea[name="message"] ' )
82
+ . find ( 'textarea' )
83
83
. should ( 'exist' )
84
84
. should ( 'have.value' , 'pre-definded-content' ) ;
85
85
} ) ;
Original file line number Diff line number Diff line change @@ -32,12 +32,10 @@ describe('startSurvey', () => {
32
32
33
33
cy . wait ( '@intercomStartSurvey' ) ;
34
34
35
- cy . get ( 'iframe[name="intercom-modal -frame"]' ) . then ( ( $iframe ) => {
35
+ cy . get ( 'iframe[name="intercom-banner-survey -frame"]' ) . then ( ( $iframe ) => {
36
36
const $body = $iframe . contents ( ) . find ( 'body' ) ;
37
37
38
- cy . wrap ( $body ) . contains (
39
- 'Want to see your feature requests on our roadmap?' ,
40
- ) ;
38
+ cy . wrap ( $body ) . contains ( 'What is the highest mountain in the world' ) ;
41
39
} ) ;
42
40
} ) ;
43
41
} ) ;
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ const RawUseIntercomPage = () => {
148
148
showSpace ( 'messages' ) ;
149
149
} , [ showSpace ] ) ;
150
150
151
- const handleStartSurvey = ( ) => startSurvey ( 29938254 ) ;
151
+ const handleStartSurvey = ( ) => startSurvey ( 45288402 ) ;
152
152
153
153
const handleShowNews = React . useCallback ( ( ) => {
154
154
showNews ( 33910172 ) ;
You can’t perform that action at this time.
0 commit comments