Skip to content

Commit 03571ef

Browse files
committed
Fix test
1 parent 43c6975 commit 03571ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/x-data-grid-premium/src/tests/prompt.DataGridPremium.test.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ describe('<DataGridPremium /> - Prompt', () => {
100100
await user.click(sendButton);
101101

102102
expect(promptSpy.callCount).to.equal(1);
103-
expect(promptSpy.firstCall.args[0]).contains('Example1');
104-
expect(promptSpy.firstCall.args[0]).not.contains('CatA');
103+
expect(promptSpy.firstCall.args[1]).contains('Example1');
104+
expect(promptSpy.firstCall.args[1]).not.contains('CatA');
105105
});
106106

107107
it('should sample rows to generate the prompt context', async () => {
@@ -114,8 +114,8 @@ describe('<DataGridPremium /> - Prompt', () => {
114114
await user.click(sendButton);
115115

116116
expect(promptSpy.callCount).to.equal(1);
117-
expect(promptSpy.firstCall.args[0]).not.contains('Example1');
118-
expect(promptSpy.firstCall.args[0]).contains('CatA');
117+
expect(promptSpy.firstCall.args[1]).not.contains('Example1');
118+
expect(promptSpy.firstCall.args[1]).contains('CatA');
119119
});
120120
});
121121

0 commit comments

Comments
 (0)