test(trading): handle unspecified side in fills table - e2e tests (#3594)

This commit is contained in:
daro-maj 2023-05-03 14:16:55 +02:00 committed by GitHub
parent f5fe3cc18d
commit f37a8720a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -85,7 +85,7 @@ describe('fills', { tags: '@regression' }, () => {
cy.wrap($role)
.invoke('text')
.then((text) => {
const roles = ['Maker', 'Taker'];
const roles = ['Maker', 'Taker', '-'];
expect(roles.indexOf(text.trim())).to.be.greaterThan(-1);
});
});

View File

@ -152,6 +152,16 @@ const fills = (id?: string): FillFieldsFragment[] => [
id: id || 'buyer-id',
},
}),
fillFieldsFragment({
id: '4',
aggressor: Schema.Side.SIDE_UNSPECIFIED,
market: {
id: 'market-2',
},
buyer: {
id: id || 'buyer-id',
},
}),
];
export const fillsEventSubscription = (