Merge branch 'master' into mononaut/public-acceleration-config
This commit is contained in:
commit
3a2aad645b
@ -1,4 +1,4 @@
|
|||||||
describe.skip('Liquid', () => {
|
describe('Liquid', () => {
|
||||||
const baseModule = Cypress.env('BASE_MODULE');
|
const baseModule = Cypress.env('BASE_MODULE');
|
||||||
const basePath = '';
|
const basePath = '';
|
||||||
|
|
||||||
@ -23,6 +23,13 @@ describe.skip('Liquid', () => {
|
|||||||
cy.get('#mempool-block-0 > .blockLink').should('exist');
|
cy.get('#mempool-block-0 > .blockLink').should('exist');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('load first mempool block after skeleton loads', () => {
|
||||||
|
cy.visit(`${basePath}`);
|
||||||
|
cy.waitForSkeletonGone();
|
||||||
|
cy.get('#mempool-block-0 > .blockLink').click();
|
||||||
|
cy.waitForSkeletonGone();
|
||||||
|
});
|
||||||
|
|
||||||
it('loads the dashboard', () => {
|
it('loads the dashboard', () => {
|
||||||
cy.visit(`${basePath}`);
|
cy.visit(`${basePath}`);
|
||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
@ -84,10 +91,11 @@ describe.skip('Liquid', () => {
|
|||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
//TODO: Change to an element id so we don't assert on a string
|
//TODO: Change to an element id so we don't assert on a string
|
||||||
cy.get('.table-tx-vin').should('contain', 'Peg-in');
|
cy.get('.table-tx-vin').should('contain', 'Peg-in');
|
||||||
cy.get('.table-tx-vin a').click().then(() => {
|
//Remove the target=_blank attribute so the new url opens in the same tab
|
||||||
|
cy.get('.table-tx-vin a').invoke('removeAttr', 'target').click().then(() => {
|
||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
if (baseModule === 'liquid') {
|
if (baseModule === 'liquid') {
|
||||||
cy.url().should('eq', 'https://mempool.space/tx/f148c0d854db4174ea420655235f910543f0ec3680566dcfdf84fb0a1697b592');
|
cy.url().should('eq', 'https://mempool.space/tx/f148c0d854db4174ea420655235f910543f0ec3680566dcfdf84fb0a1697b592#vout=0');
|
||||||
} else {
|
} else {
|
||||||
//TODO: Use an environment variable to get the hostname
|
//TODO: Use an environment variable to get the hostname
|
||||||
cy.url().should('eq', 'http://localhost:4200/tx/f148c0d854db4174ea420655235f910543f0ec3680566dcfdf84fb0a1697b592');
|
cy.url().should('eq', 'http://localhost:4200/tx/f148c0d854db4174ea420655235f910543f0ec3680566dcfdf84fb0a1697b592');
|
||||||
@ -98,7 +106,8 @@ describe.skip('Liquid', () => {
|
|||||||
it('loads peg out addresses', () => {
|
it('loads peg out addresses', () => {
|
||||||
cy.visit(`${basePath}/tx/ecf6eba04ffb3946faa172343c87162df76f1a57b07b0d6dc6ad956b13376dc8`);
|
cy.visit(`${basePath}/tx/ecf6eba04ffb3946faa172343c87162df76f1a57b07b0d6dc6ad956b13376dc8`);
|
||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
cy.get('.table-tx-vout a').first().click().then(() => {
|
//Remove the target=_blank attribute so the new url opens in the same tab
|
||||||
|
cy.get('.table-tx-vout a').first().invoke('removeAttr', 'target').click().then(() => {
|
||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
if (baseModule === 'liquid') {
|
if (baseModule === 'liquid') {
|
||||||
cy.url().should('eq', 'https://mempool.space/address/1BxoGcMg14oaH3CwHD2hF4gU9VcfgX5yoR');
|
cy.url().should('eq', 'https://mempool.space/address/1BxoGcMg14oaH3CwHD2hF4gU9VcfgX5yoR');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
describe.skip('Liquid Testnet', () => {
|
describe('Liquid Testnet', () => {
|
||||||
const baseModule = Cypress.env('BASE_MODULE');
|
const baseModule = Cypress.env('BASE_MODULE');
|
||||||
const basePath = '/testnet';
|
const basePath = '/testnet';
|
||||||
|
|
||||||
@ -28,6 +28,17 @@ describe.skip('Liquid Testnet', () => {
|
|||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it.skip('loads the dashboard with no scrollbars on mobile', () => {
|
||||||
|
cy.viewport('iphone-xr');
|
||||||
|
cy.visit(`${basePath}`);
|
||||||
|
cy.waitForSkeletonGone();
|
||||||
|
cy.window().then(window => {
|
||||||
|
const htmlWidth = Cypress.$('html')[0].scrollWidth;
|
||||||
|
const scrollBarWidth = window.innerWidth - htmlWidth;
|
||||||
|
expect(scrollBarWidth).to.be.eq(0); //check for no horizontal scrollbar
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it('loads the blocks page', () => {
|
it('loads the blocks page', () => {
|
||||||
cy.visit(`${basePath}`)
|
cy.visit(`${basePath}`)
|
||||||
cy.get('#btn-blocks');
|
cy.get('#btn-blocks');
|
||||||
@ -57,17 +68,14 @@ describe.skip('Liquid Testnet', () => {
|
|||||||
cy.get('.tv-only').should('not.exist');
|
cy.get('.tv-only').should('not.exist');
|
||||||
});
|
});
|
||||||
|
|
||||||
it.skip('renders unconfidential addresses correctly on mobile', () => {
|
it.skip('renders unconfidential transactions correctly on mobile', () => {
|
||||||
cy.viewport('iphone-6');
|
cy.viewport('iphone-xr');
|
||||||
cy.visit(`${basePath}/address/__TODO__`);
|
cy.visit(`${basePath}/tx/b119f338878416781dc285b94c0de52826341dea43566e4de4740d3ebfd1f6dc#blinded=99707,144c654344aa716d6f3abcc1ca90e5641e4e2a7f633bc09fe3baf64585819a49,1377e4ec8eb0c89296e14ffca57e377f4b51ad8f1c881e43364434d8430dbfda,cdd6caae4c3452586cfcb107478dd2b7acaa5f82714a6a966578255e857eee60`);
|
||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
//TODO: Add proper IDs for these selectors
|
cy.window().then(window => {
|
||||||
const firstRowSelector = '.container-xl > :nth-child(3) > div > :nth-child(1) > .table > tbody';
|
const htmlWidth = Cypress.$('html')[0].scrollWidth;
|
||||||
const thirdRowSelector = '.container-xl > :nth-child(3) > div > :nth-child(3)';
|
const scrollBarWidth = window.innerWidth - htmlWidth;
|
||||||
cy.get(firstRowSelector).invoke('css', 'width').then(firstRowWidth => {
|
expect(scrollBarWidth).to.be.eq(0); //check for no horizontal scrollbar
|
||||||
cy.get(thirdRowSelector).invoke('css', 'width').then(thirdRowWidth => {
|
|
||||||
expect(parseInt(firstRowWidth)).to.be.lessThan(parseInt(thirdRowWidth));
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -9152,18 +9152,18 @@ export const restApiDocsData = [
|
|||||||
type: "endpoint",
|
type: "endpoint",
|
||||||
category: "accelerator-private",
|
category: "accelerator-private",
|
||||||
httpRequestMethod: "GET",
|
httpRequestMethod: "GET",
|
||||||
fragment: "accelerator-deposit-history",
|
fragment: "accelerator-top-up-history",
|
||||||
title: "GET Deposit History",
|
title: "GET Top Up History",
|
||||||
description: {
|
description: {
|
||||||
default: "<p>Returns a list of deposits the user has made as prepayment for the accelerator service.</p>"
|
default: "<p>Returns a list of top ups the user has made as prepayment for the accelerator service.</p>"
|
||||||
},
|
},
|
||||||
urlString: "/v1/services/accelerator/deposit-history",
|
urlString: "/v1/services/accelerator/top-up-history",
|
||||||
showConditions: [""],
|
showConditions: [""],
|
||||||
showJsExamples: showJsExamplesDefaultFalse,
|
showJsExamples: showJsExamplesDefaultFalse,
|
||||||
codeExample: {
|
codeExample: {
|
||||||
default: {
|
default: {
|
||||||
codeTemplate: {
|
codeTemplate: {
|
||||||
curl: `/api/v1/services/accelerator/deposit-history`,
|
curl: `/api/v1/services/accelerator/top-up-history`,
|
||||||
commonJS: ``,
|
commonJS: ``,
|
||||||
esModule: ``
|
esModule: ``
|
||||||
},
|
},
|
||||||
|
@ -14,7 +14,7 @@ const MempoolErrors = {
|
|||||||
'mempool_rejected_raw_tx': `Our mempool rejected this transaction`,
|
'mempool_rejected_raw_tx': `Our mempool rejected this transaction`,
|
||||||
'no_mining_pool_available': `No mining pool available at the moment`,
|
'no_mining_pool_available': `No mining pool available at the moment`,
|
||||||
'not_available': `You current subscription does not allow you to access this feature.`,
|
'not_available': `You current subscription does not allow you to access this feature.`,
|
||||||
'not_enough_balance': `Your account balance is too low. Please make a <a style="color:#105fb0" href="/services/accelerator/overview">deposit.</a>`,
|
'not_enough_balance': `Your balance is too low. Please <a style="color:#105fb0" href="/services/accelerator/overview">top up your account</a>.`,
|
||||||
'not_verified': `You must verify your account to use this feature.`,
|
'not_verified': `You must verify your account to use this feature.`,
|
||||||
'recommended_fees_not_available': `Recommended fees are not available right now.`,
|
'recommended_fees_not_available': `Recommended fees are not available right now.`,
|
||||||
'too_many_relatives': `This transaction has too many relatives.`,
|
'too_many_relatives': `This transaction has too many relatives.`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user