@@ -30,7 +30,7 @@ describe('snapshot', () => {
3030 await waitFor . handler (
3131 {
3232 params : {
33- text : 'Hello' ,
33+ text : [ 'Hello' ] ,
3434 } ,
3535 } ,
3636 response ,
@@ -39,7 +39,7 @@ describe('snapshot', () => {
3939
4040 assert . equal (
4141 response . responseLines [ 0 ] ,
42- 'Element with text "Hello" found.' ,
42+ 'Element matching one of [ "Hello"] found.' ,
4343 ) ;
4444 assert . ok ( response . includeSnapshot ) ;
4545 } ) ;
@@ -107,7 +107,7 @@ describe('snapshot', () => {
107107 const handlePromise = waitFor . handler (
108108 {
109109 params : {
110- text : 'Hello World' ,
110+ text : [ 'Hello World' ] ,
111111 } ,
112112 } ,
113113 response ,
@@ -122,7 +122,7 @@ describe('snapshot', () => {
122122
123123 assert . equal (
124124 response . responseLines [ 0 ] ,
125- 'Element with text "Hello World" found.' ,
125+ 'Element matching one of [ "Hello World"] found.' ,
126126 ) ;
127127 assert . ok ( response . includeSnapshot ) ;
128128 } ) ;
@@ -138,7 +138,7 @@ describe('snapshot', () => {
138138 await waitFor . handler (
139139 {
140140 params : {
141- text : 'Header' ,
141+ text : [ 'Header' ] ,
142142 } ,
143143 } ,
144144 response ,
@@ -147,7 +147,7 @@ describe('snapshot', () => {
147147
148148 assert . equal (
149149 response . responseLines [ 0 ] ,
150- 'Element with text "Header" found.' ,
150+ 'Element matching one of [ "Header"] found.' ,
151151 ) ;
152152 assert . ok ( response . includeSnapshot ) ;
153153 } ) ;
@@ -165,7 +165,7 @@ describe('snapshot', () => {
165165 await waitFor . handler (
166166 {
167167 params : {
168- text : 'Hello iframe' ,
168+ text : [ 'Hello iframe' ] ,
169169 } ,
170170 } ,
171171 response ,
@@ -174,7 +174,7 @@ describe('snapshot', () => {
174174
175175 assert . equal (
176176 response . responseLines [ 0 ] ,
177- 'Element with text "Hello iframe" found.' ,
177+ 'Element matching one of [ "Hello iframe"] found.' ,
178178 ) ;
179179 assert . ok ( response . includeSnapshot ) ;
180180 } ) ;
0 commit comments