@@ -42,11 +42,11 @@ describe('ObjectGrid MSW Integration', () => {
4242
4343 // Wait for data to load
4444 await waitFor ( ( ) => {
45- expect ( screen . getByText ( 'John Doe ' ) ) . toBeInTheDocument ( ) ;
45+ expect ( screen . getByText ( 'Alice Johnson ' ) ) . toBeInTheDocument ( ) ;
4646 } , { timeout : 5000 } ) ;
4747
48- expect ( screen . getByText ( 'jane.smith @example.com' ) ) . toBeInTheDocument ( ) ;
49- expect ( screen . getByText ( 'Tech Solutions ' ) ) . toBeInTheDocument ( ) ;
48+ expect ( screen . getByText ( 'alice @example.com' ) ) . toBeInTheDocument ( ) ;
49+ expect ( screen . getByText ( 'TechCorp ' ) ) . toBeInTheDocument ( ) ;
5050 } ) ;
5151
5252 it ( 'should render all columns specified in schema' , async ( ) => {
@@ -55,20 +55,20 @@ describe('ObjectGrid MSW Integration', () => {
5555 schema = { {
5656 type : 'object-grid' ,
5757 objectName : 'contact' ,
58- columns : [ 'name' , 'email' , 'phone' , 'company' , 'priority ' ] ,
58+ columns : [ 'name' , 'email' , 'phone' , 'company' , 'status ' ] ,
5959 } }
6060 dataSource = { dataSource }
6161 />
6262 ) ;
6363
6464 await waitFor ( ( ) => {
65- expect ( screen . getByText ( 'John Doe ' ) ) . toBeInTheDocument ( ) ;
65+ expect ( screen . getByText ( 'Alice Johnson ' ) ) . toBeInTheDocument ( ) ;
6666 } , { timeout : 5000 } ) ;
6767
6868 // Check that all specified columns are rendered
69- expect ( screen . getByText ( '+1234567890 ' ) ) . toBeInTheDocument ( ) ;
70- expect ( screen . getByText ( 'Acme Corp ' ) ) . toBeInTheDocument ( ) ;
71- expect ( screen . getByText ( '8 ' ) ) . toBeInTheDocument ( ) ;
69+ expect ( screen . getByText ( '555-0101 ' ) ) . toBeInTheDocument ( ) ;
70+ expect ( screen . getByText ( 'TechCorp ' ) ) . toBeInTheDocument ( ) ;
71+ expect ( screen . getByText ( 'Active ' ) ) . toBeInTheDocument ( ) ;
7272 } ) ;
7373
7474 it ( 'should handle empty data gracefully' , async ( ) => {
@@ -90,7 +90,7 @@ describe('ObjectGrid MSW Integration', () => {
9090
9191 // Should not show any contact data
9292 await waitFor ( ( ) => {
93- expect ( screen . queryByText ( 'John Doe ' ) ) . not . toBeInTheDocument ( ) ;
93+ expect ( screen . queryByText ( 'Alice Johnson ' ) ) . not . toBeInTheDocument ( ) ;
9494 } ) ;
9595 } ) ;
9696 } ) ;
@@ -139,7 +139,7 @@ describe('ObjectGrid MSW Integration', () => {
139139 ) ;
140140
141141 await waitFor ( ( ) => {
142- expect ( screen . getByText ( 'John Doe ' ) ) . toBeInTheDocument ( ) ;
142+ expect ( screen . getByText ( 'Alice Johnson ' ) ) . toBeInTheDocument ( ) ;
143143 } , { timeout : 5000 } ) ;
144144
145145 // Note: Row selection UI depends on the actual grid implementation
@@ -163,7 +163,7 @@ describe('ObjectGrid MSW Integration', () => {
163163 ) ;
164164
165165 await waitFor ( ( ) => {
166- expect ( screen . getByText ( 'John Doe ' ) ) . toBeInTheDocument ( ) ;
166+ expect ( screen . getByText ( 'Alice Johnson ' ) ) . toBeInTheDocument ( ) ;
167167 } , { timeout : 5000 } ) ;
168168
169169 // Look for edit buttons (implementation-specific)
@@ -187,7 +187,7 @@ describe('ObjectGrid MSW Integration', () => {
187187 ) ;
188188
189189 await waitFor ( ( ) => {
190- expect ( screen . getByText ( 'John Doe ' ) ) . toBeInTheDocument ( ) ;
190+ expect ( screen . getByText ( 'Alice Johnson ' ) ) . toBeInTheDocument ( ) ;
191191 } , { timeout : 5000 } ) ;
192192
193193 // Look for delete buttons (implementation-specific)
@@ -211,7 +211,7 @@ describe('ObjectGrid MSW Integration', () => {
211211 // Check for loading indicator (implementation-specific)
212212 // The grid should eventually show data
213213 await waitFor ( ( ) => {
214- expect ( screen . getByText ( 'John Doe ' ) ) . toBeInTheDocument ( ) ;
214+ expect ( screen . getByText ( 'Alice Johnson ' ) ) . toBeInTheDocument ( ) ;
215215 } , { timeout : 5000 } ) ;
216216 } ) ;
217217
@@ -228,9 +228,9 @@ describe('ObjectGrid MSW Integration', () => {
228228 ) ;
229229
230230 await waitFor ( ( ) => {
231- expect ( screen . getByText ( 'John Doe ' ) ) . toBeInTheDocument ( ) ;
232- expect ( screen . getByText ( 'Jane Smith' ) ) . toBeInTheDocument ( ) ;
233- expect ( screen . getByText ( 'Bob Johnson ' ) ) . toBeInTheDocument ( ) ;
231+ expect ( screen . getByText ( 'Alice Johnson ' ) ) . toBeInTheDocument ( ) ;
232+ expect ( screen . getByText ( 'Bob Smith' ) ) . toBeInTheDocument ( ) ;
233+ expect ( screen . getByText ( 'Charlie Brown ' ) ) . toBeInTheDocument ( ) ;
234234 } , { timeout : 5000 } ) ;
235235 } ) ;
236236 } ) ;
0 commit comments