test(trading): show full oracle profile info in markets test (#3695)
This commit is contained in:
parent
bd679957e2
commit
d44392bebf
@ -6,6 +6,7 @@ const row = 'key-value-table-row';
|
|||||||
const marketTitle = 'accordion-title';
|
const marketTitle = 'accordion-title';
|
||||||
const externalLink = 'external-link';
|
const externalLink = 'external-link';
|
||||||
const accordionContent = 'accordion-content';
|
const accordionContent = 'accordion-content';
|
||||||
|
const providerName = 'provider-name';
|
||||||
|
|
||||||
describe('market info is displayed', { tags: '@smoke' }, () => {
|
describe('market info is displayed', { tags: '@smoke' }, () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@ -181,9 +182,20 @@ describe('market info is displayed', { tags: '@smoke' }, () => {
|
|||||||
cy.getByTestId(marketTitle).contains('Oracle').click();
|
cy.getByTestId(marketTitle).contains('Oracle').click();
|
||||||
|
|
||||||
cy.getByTestId(accordionContent)
|
cy.getByTestId(accordionContent)
|
||||||
.getByTestId('provider-name')
|
.getByTestId(providerName)
|
||||||
.and('contain', 'Another oracle');
|
.and('contain', 'Another oracle');
|
||||||
|
|
||||||
|
cy.getByTestId(providerName).should('be.visible').click();
|
||||||
|
|
||||||
|
cy.getByTestId('dialog-content')
|
||||||
|
.eq(1)
|
||||||
|
.within(() => {
|
||||||
|
cy.getByTestId('block-explorer-link').contains('Block explorer');
|
||||||
|
cy.getByTestId('github-link').contains('Oracle repository');
|
||||||
|
cy.getByTestId('verified-accounts').contains('0 proofs of ownership');
|
||||||
|
});
|
||||||
|
cy.getByTestId('dialog-close').click();
|
||||||
|
|
||||||
cy.getByTestId(accordionContent)
|
cy.getByTestId(accordionContent)
|
||||||
.getByTestId('verified-proofs')
|
.getByTestId('verified-proofs')
|
||||||
.and('contain', '1');
|
.and('contain', '1');
|
||||||
|
@ -17,7 +17,6 @@ describe('ethereum wallet', { tags: '@smoke', testIsolation: true }, () => {
|
|||||||
it('can connect', () => {
|
it('can connect', () => {
|
||||||
// 0004-EWAL-001
|
// 0004-EWAL-001
|
||||||
|
|
||||||
cy.wait('@NetworkParams');
|
|
||||||
cy.getByTestId('Deposits').click();
|
cy.getByTestId('Deposits').click();
|
||||||
cy.getByTestId('deposit-button').click();
|
cy.getByTestId('deposit-button').click();
|
||||||
cy.getByTestId('connect-eth-wallet-btn').click();
|
cy.getByTestId('connect-eth-wallet-btn').click();
|
||||||
@ -30,7 +29,6 @@ describe('ethereum wallet', { tags: '@smoke', testIsolation: true }, () => {
|
|||||||
it('should see QR code modal for WalletConnect', () => {
|
it('should see QR code modal for WalletConnect', () => {
|
||||||
// 0004-EWAL-003
|
// 0004-EWAL-003
|
||||||
|
|
||||||
cy.wait('@NetworkParams');
|
|
||||||
cy.getByTestId('Deposits').click();
|
cy.getByTestId('Deposits').click();
|
||||||
cy.getByTestId('deposit-button').click();
|
cy.getByTestId('deposit-button').click();
|
||||||
cy.getByTestId('connect-eth-wallet-btn').click();
|
cy.getByTestId('connect-eth-wallet-btn').click();
|
||||||
|
@ -97,7 +97,7 @@ export const useColumnSizes = ({
|
|||||||
const setSizes = useCallback(
|
const setSizes = useCallback(
|
||||||
(apiEvent: GridReadyEvent | GridSizeChangedEvent) => {
|
(apiEvent: GridReadyEvent | GridSizeChangedEvent) => {
|
||||||
if (!storeKey || !Object.keys(sizes).length || !widthRef.current) {
|
if (!storeKey || !Object.keys(sizes).length || !widthRef.current) {
|
||||||
apiEvent.api.sizeColumnsToFit();
|
apiEvent?.api.sizeColumnsToFit();
|
||||||
} else {
|
} else {
|
||||||
const recalculatedSizes = recalculateSizes(sizes);
|
const recalculatedSizes = recalculateSizes(sizes);
|
||||||
const newSizes = Object.entries(recalculatedSizes).map(
|
const newSizes = Object.entries(recalculatedSizes).map(
|
||||||
|
Loading…
Reference in New Issue
Block a user