mirror of
https://github.com/strapi/strapi.git
synced 2025-12-02 01:52:21 +00:00
Relation: Update test copy
This commit is contained in:
parent
47644c0863
commit
43cf28ffa6
@ -12,7 +12,7 @@ jest.spyOn(axiosInstance, 'get').mockResolvedValue({
|
||||
results: [
|
||||
{
|
||||
id: 1,
|
||||
name: 'relation entity 1',
|
||||
name: 'Relation entity 1',
|
||||
},
|
||||
],
|
||||
|
||||
@ -73,8 +73,8 @@ describe('DynamicTabe / Cellcontent / RelationMultiple', () => {
|
||||
|
||||
fireEvent(button, new MouseEvent('mousedown', { bubbles: true }));
|
||||
|
||||
expect(screen.getByText('The relations are loading')).toBeInTheDocument();
|
||||
expect(screen.getByText('Relations are loading')).toBeInTheDocument();
|
||||
expect(axiosInstance.get).toHaveBeenCalledTimes(1);
|
||||
await waitFor(() => expect(screen.getByText('relation entity 1')).toBeInTheDocument());
|
||||
await waitFor(() => expect(screen.getByText('Relation entity 1')).toBeInTheDocument());
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user