test(trading): tests for distinguish between product types (#4589)
This commit is contained in:
parent
29f3374c61
commit
250492a02c
@ -259,6 +259,12 @@ describe('Closed markets', { tags: '@smoke' }, () => {
|
|||||||
.find('[data-testid="market-code"]')
|
.find('[data-testid="market-code"]')
|
||||||
.should('have.text', settledMarket.tradableInstrument.instrument.code);
|
.should('have.text', settledMarket.tradableInstrument.instrument.code);
|
||||||
|
|
||||||
|
// 6001-MARK-071
|
||||||
|
cy.get(rowSelector)
|
||||||
|
.first()
|
||||||
|
.find('[title="Future"]')
|
||||||
|
.should('have.text', 'Futr');
|
||||||
|
|
||||||
// 6001-MARK-002
|
// 6001-MARK-002
|
||||||
cy.get(rowSelector)
|
cy.get(rowSelector)
|
||||||
.first()
|
.first()
|
||||||
|
@ -69,6 +69,12 @@ describe('markets all table', { tags: '@smoke' }, () => {
|
|||||||
.find(colInstrumentCode)
|
.find(colInstrumentCode)
|
||||||
.should('have.text', 'SOLUSD');
|
.should('have.text', 'SOLUSD');
|
||||||
|
|
||||||
|
// 6001-MARK-073
|
||||||
|
cy.get(rowSelector)
|
||||||
|
.first()
|
||||||
|
.find('[title="Future"]')
|
||||||
|
.should('have.text', 'Futr');
|
||||||
|
|
||||||
// 6001-MARK-036
|
// 6001-MARK-036
|
||||||
cy.get(rowSelector)
|
cy.get(rowSelector)
|
||||||
.first()
|
.first()
|
||||||
|
@ -45,6 +45,12 @@ describe('markets proposed table', { tags: '@smoke' }, () => {
|
|||||||
.find('[col-id="description"]')
|
.find('[col-id="description"]')
|
||||||
.should('have.text', 'ETHUSD');
|
.should('have.text', 'ETHUSD');
|
||||||
|
|
||||||
|
// 6001-MARK-074
|
||||||
|
cy.get(rowSelector)
|
||||||
|
.first()
|
||||||
|
.find('[title="Future"]')
|
||||||
|
.should('have.text', 'Futr');
|
||||||
|
|
||||||
// 6001-MARK-051
|
// 6001-MARK-051
|
||||||
cy.get(rowSelector)
|
cy.get(rowSelector)
|
||||||
.first()
|
.first()
|
||||||
|
@ -222,12 +222,17 @@ describe('subscribe orders', { tags: '@smoke' }, () => {
|
|||||||
|
|
||||||
it('must see a filled order', () => {
|
it('must see a filled order', () => {
|
||||||
// 7002-SORD-046
|
// 7002-SORD-046
|
||||||
|
// 7003-MORD-020
|
||||||
// NOT COVERED: Must be able to see/link to all trades that were created from this order
|
// NOT COVERED: Must be able to see/link to all trades that were created from this order
|
||||||
updateOrder({
|
updateOrder({
|
||||||
id: orderId,
|
id: orderId,
|
||||||
status: Schema.OrderStatus.STATUS_FILLED,
|
status: Schema.OrderStatus.STATUS_FILLED,
|
||||||
});
|
});
|
||||||
cy.getByTestId(`order-status-${orderId}`).should('have.text', 'Filled');
|
cy.getByTestId(`order-status-${orderId}`).should('have.text', 'Filled');
|
||||||
|
cy.get('[col-id="market.tradableInstrument.instrument.code"]').contains(
|
||||||
|
'[title="Future"]',
|
||||||
|
'Futr'
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('must see a rejected order', () => {
|
it('must see a rejected order', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user