test(trading): handle unspecified side in fills table - e2e tests (#3594)
This commit is contained in:
parent
f5fe3cc18d
commit
f37a8720a2
@ -85,7 +85,7 @@ describe('fills', { tags: '@regression' }, () => {
|
|||||||
cy.wrap($role)
|
cy.wrap($role)
|
||||||
.invoke('text')
|
.invoke('text')
|
||||||
.then((text) => {
|
.then((text) => {
|
||||||
const roles = ['Maker', 'Taker'];
|
const roles = ['Maker', 'Taker', '-'];
|
||||||
expect(roles.indexOf(text.trim())).to.be.greaterThan(-1);
|
expect(roles.indexOf(text.trim())).to.be.greaterThan(-1);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -152,6 +152,16 @@ const fills = (id?: string): FillFieldsFragment[] => [
|
|||||||
id: id || 'buyer-id',
|
id: id || 'buyer-id',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
fillFieldsFragment({
|
||||||
|
id: '4',
|
||||||
|
aggressor: Schema.Side.SIDE_UNSPECIFIED,
|
||||||
|
market: {
|
||||||
|
id: 'market-2',
|
||||||
|
},
|
||||||
|
buyer: {
|
||||||
|
id: id || 'buyer-id',
|
||||||
|
},
|
||||||
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
export const fillsEventSubscription = (
|
export const fillsEventSubscription = (
|
||||||
|
Loading…
Reference in New Issue
Block a user