fix: proposal list test
This commit is contained in:
@@ -100,7 +100,8 @@ describe('ProposalsList', () => {
|
||||
const container = within(
|
||||
document.querySelector(rowContainerSelector) as HTMLElement
|
||||
);
|
||||
expect(container.getAllByRole('row')).toHaveLength(
|
||||
|
||||
expect(await container.findAllByRole('row')).toHaveLength(
|
||||
// @ts-ignore data is mocked
|
||||
mock?.result?.data.proposalsConnection.edges.length
|
||||
);
|
||||
|
||||
@@ -120,7 +120,7 @@ export const createProposalListFieldsFragment = (
|
||||
factorShort: 1,
|
||||
},
|
||||
},
|
||||
metadata: undefined,
|
||||
metadata: [],
|
||||
successorConfiguration: {
|
||||
__typename: 'SuccessorConfiguration',
|
||||
parentMarketId: 'xyz',
|
||||
|
||||
Reference in New Issue
Block a user