test(trading): update live e2e tests (#3307)
This commit is contained in:
parent
528fd96721
commit
c3a4954d0d
@ -282,7 +282,6 @@ describe('capsule', { tags: '@slow' }, () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// comment because of bug #2695
|
|
||||||
it('can edit order', function () {
|
it('can edit order', function () {
|
||||||
cy.getByTestId(ordersTab).click();
|
cy.getByTestId(ordersTab).click();
|
||||||
cy.getByTestId('edit').first().should('be.visible').click();
|
cy.getByTestId('edit').first().should('be.visible').click();
|
||||||
|
@ -52,6 +52,8 @@ describe('Console - market list - live env', { tags: '@live' }, () => {
|
|||||||
describe('Console - market info - live env', { tags: '@live' }, () => {
|
describe('Console - market info - live env', { tags: '@live' }, () => {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
|
cy.contains('Loading market data...').should('not.exist');
|
||||||
|
cy.getByTestId('link').should('be.visible');
|
||||||
cy.getByTestId('dialog-close').click();
|
cy.getByTestId('dialog-close').click();
|
||||||
cy.getByTestId(marketInfoBtn).click();
|
cy.getByTestId(marketInfoBtn).click();
|
||||||
});
|
});
|
||||||
@ -68,17 +70,20 @@ describe('Console - market info - live env', { tags: '@live' }, () => {
|
|||||||
'Risk model',
|
'Risk model',
|
||||||
'Risk parameters',
|
'Risk parameters',
|
||||||
'Risk factors',
|
'Risk factors',
|
||||||
'Price monitoring trigger 1',
|
'Price monitoring bounds 1',
|
||||||
'Liquidity monitoring parameters',
|
'Liquidity monitoring parameters',
|
||||||
'Liquidity',
|
'Liquidity',
|
||||||
|
'Liquidity price range',
|
||||||
'Oracle',
|
'Oracle',
|
||||||
'Proposal',
|
'Proposal',
|
||||||
];
|
];
|
||||||
|
|
||||||
it('market info titles are displayed', () => {
|
it('market info titles are displayed', () => {
|
||||||
cy.get('.text-lg').each((element, index) => {
|
cy.getByTestId('split-view-view')
|
||||||
cy.wrap(element).should('have.text', titles[index]);
|
.find('.text-lg')
|
||||||
});
|
.each((element, index) => {
|
||||||
|
cy.wrap(element).should('have.text', titles[index]);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('market info subtitles are displayed', () => {
|
it('market info subtitles are displayed', () => {
|
||||||
@ -205,6 +210,8 @@ describe('Console - markets table - live env', { tags: '@live' }, () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function openMarketDropDown() {
|
function openMarketDropDown() {
|
||||||
|
cy.contains('Loading...').should('not.exist');
|
||||||
|
cy.getByTestId('link').should('be.visible');
|
||||||
cy.getByTestId('dialog-close').click();
|
cy.getByTestId('dialog-close').click();
|
||||||
cy.getByTestId('popover-trigger').click();
|
cy.getByTestId('popover-trigger').click();
|
||||||
cy.contains('Loading market data...').should('not.exist');
|
cy.contains('Loading market data...').should('not.exist');
|
||||||
|
@ -75,8 +75,7 @@ describe('market info is displayed', { tags: '@smoke' }, () => {
|
|||||||
validateMarketDataRow(3, 'Quote Name', 'BTC');
|
validateMarketDataRow(3, 'Quote Name', 'BTC');
|
||||||
});
|
});
|
||||||
|
|
||||||
// need to check why data are not visible
|
it('settlement asset displayed', () => {
|
||||||
it.skip('settlement asset displayed', () => {
|
|
||||||
cy.getByTestId(marketTitle).contains('Settlement asset').click();
|
cy.getByTestId(marketTitle).contains('Settlement asset').click();
|
||||||
cy.window().then((win) => {
|
cy.window().then((win) => {
|
||||||
cy.stub(win, 'prompt').returns('DISABLED WINDOW PROMPT');
|
cy.stub(win, 'prompt').returns('DISABLED WINDOW PROMPT');
|
||||||
|
Loading…
Reference in New Issue
Block a user