test(ci): capsule update v0.71.1 (#3559)

This commit is contained in:
Joe Tsang 2023-04-27 14:37:55 +01:00 committed by GitHub
parent 3665375b75
commit 0f7bffd38b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 91 additions and 78 deletions

View File

@ -1,7 +1,7 @@
NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-explorer-api NX_CHAIN_EXPLORER_URL=https://explorer.vega.trading/.netlify/functions/chain-explorer-api
NX_TENDERMINT_URL=http://localhost:26617 NX_TENDERMINT_URL=http://localhost:26617
NX_TENDERMINT_WEBSOCKET_URL=wss://localhost:26617/websocket NX_TENDERMINT_WEBSOCKET_URL=wss://localhost:26617/websocket
NX_VEGA_URL=http://localhost:3028/query NX_VEGA_URL=http://localhost:3008/graphql
NX_VEGA_ENV=CUSTOM NX_VEGA_ENV=CUSTOM
NX_VEGA_CONFIG_URL= NX_VEGA_CONFIG_URL=
@ -18,4 +18,4 @@ NX_EXPLORER_PARTIES=1
NX_EXPLORER_VALIDATORS=1 NX_EXPLORER_VALIDATORS=1
CYPRESS_VEGA_WALLET_API_TOKEN= CYPRESS_VEGA_WALLET_API_TOKEN=
CYPRESS_VEGA_URL=http://localhost:3028/query CYPRESS_VEGA_URL=http://localhost:3008/graphql

View File

@ -25,7 +25,7 @@ module.exports = defineConfig({
}, },
env: { env: {
environment: 'CUSTOM', environment: 'CUSTOM',
networkQueryUrl: 'http://localhost:3028/query', networkQueryUrl: 'http://localhost:3008/graphql',
ethUrl: 'https://sepolia.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8', ethUrl: 'https://sepolia.infura.io/v3/4f846e79e13f44d1b51bbd7ed9edefb8',
commitHash: 'dev', commitHash: 'dev',
tsConfig: 'tsconfig.json', tsConfig: 'tsconfig.json',

View File

@ -6,7 +6,7 @@ const customNodeBtn = 'custom-node';
context.skip('Node switcher', { tags: '@regression' }, function () { context.skip('Node switcher', { tags: '@regression' }, function () {
beforeEach('visit home page', function () { beforeEach('visit home page', function () {
cy.intercept('GET', 'https://static.vega.xyz/assets/capsule-network.json', { cy.intercept('GET', 'https://static.vega.xyz/assets/capsule-network.json', {
hosts: ['http://localhost:3028/query'], hosts: ['http://localhost:3008/graphql'],
}).as('nodeData'); }).as('nodeData');
cy.visit('/'); cy.visit('/');
cy.wait('@nodeData'); cy.wait('@nodeData');

View File

@ -219,7 +219,7 @@ context.skip('Parties page', { tags: '@regression' }, function () {
balance type asset {id symbol decimals}}}}}}}}'; balance type asset {id symbol decimals}}}}}}}}';
cy.request({ cy.request({
method: 'POST', method: 'POST',
url: `http://localhost:3028/query`, url: `http://localhost:3008/graphql`,
body: { body: {
query: mutation, query: mutation,
}, },

View File

@ -5,7 +5,7 @@ NX_ETHERSCAN_URL=https://sepolia.etherscan.io
NX_FAIRGROUND=false NX_FAIRGROUND=false
NX_VEGA_NETWORKS={} NX_VEGA_NETWORKS={}
NX_VEGA_URL=http://localhost:3028/query NX_VEGA_URL=http://localhost:3008/graphql
NX_ETHEREUM_CHAIN_ID=1440 NX_ETHEREUM_CHAIN_ID=1440
NX_ETH_URL_CONNECT=1 NX_ETH_URL_CONNECT=1
NX_ETH_WALLET_MNEMONIC=ozone access unlock valid olympic save include omit supply green clown session NX_ETH_WALLET_MNEMONIC=ozone access unlock valid olympic save include omit supply green clown session
@ -20,7 +20,7 @@ NX_WALLETCONNECT_PROJECT_ID=fe8091dc35738863e509fc4947525c72
#Test configuration variables #Test configuration variables
CYPRESS_FAIRGROUND=false CYPRESS_FAIRGROUND=false
CYPRESS_VEGA_URL=http://localhost:3028/query CYPRESS_VEGA_URL=http://localhost:3008/graphql
CYPRESS_ETH_WALLET_MNEMONIC=ozone access unlock valid olympic save include omit supply green clown session CYPRESS_ETH_WALLET_MNEMONIC=ozone access unlock valid olympic save include omit supply green clown session
CYPRESS_ETHEREUM_PROVIDER_URL=http://localhost:8545 CYPRESS_ETHEREUM_PROVIDER_URL=http://localhost:8545
CYPRESS_EXPLORER_URL=https://explorer.fairground.wtf CYPRESS_EXPLORER_URL=https://explorer.fairground.wtf
@ -31,6 +31,5 @@ CYPRESS_VEGA_ENV=CUSTOM
CYPRESS_VEGA_PUBLIC_KEY=02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65 CYPRESS_VEGA_PUBLIC_KEY=02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65
CYPRESS_VEGA_PUBLIC_KEY2=7f9cf07d3a9905b1a61a1069f7a758855da428bc0f4a97de87f48644bfc25535 CYPRESS_VEGA_PUBLIC_KEY2=7f9cf07d3a9905b1a61a1069f7a758855da428bc0f4a97de87f48644bfc25535
CYPRESS_VEGA_TOKEN_URL=https://token.fairground.wtf CYPRESS_VEGA_TOKEN_URL=https://token.fairground.wtf
CYPRESS_VEGA_URL=http://localhost:3028/query
CYPRESS_VEGA_WALLET_URL=http://localhost:1789 CYPRESS_VEGA_WALLET_URL=http://localhost:1789
CYPRESS_VEGA_WALLET_API_TOKEN= CYPRESS_VEGA_WALLET_API_TOKEN=

View File

@ -50,6 +50,8 @@ const liquidityVoteStatus = 'liquidity-votes-status';
const tokenVoteStatus = 'token-votes-status'; const tokenVoteStatus = 'token-votes-status';
const proposalTermsSection = 'proposal'; const proposalTermsSection = 'proposal';
const vegaWalletPublicKey = Cypress.env('vegaWalletPublicKey'); const vegaWalletPublicKey = Cypress.env('vegaWalletPublicKey');
const fUSDCId =
'816af99af60d684502a40824758f6b5377e6af48e50a9ee8ef478ecb879ea8bc';
const epochTimeout = Cypress.env('epochTimeout'); const epochTimeout = Cypress.env('epochTimeout');
const proposalTimeout = { timeout: 14000 }; const proposalTimeout = { timeout: 14000 };
@ -264,7 +266,7 @@ context(
it('Unable to submit update market proposal without minimum amount of tokens', function () { it('Unable to submit update market proposal without minimum amount of tokens', function () {
vegaWalletTeardown(); vegaWalletTeardown();
vegaWalletFaucetAssetsWithoutCheck( vegaWalletFaucetAssetsWithoutCheck(
'fUSDC', fUSDCId,
'1000000', '1000000',
vegaWalletPublicKey vegaWalletPublicKey
); );
@ -290,7 +292,7 @@ context(
// 3001-VOTE-092 3004-PMAC-001 // 3001-VOTE-092 3004-PMAC-001
it('Able to submit update market proposal and vote for proposal', function () { it('Able to submit update market proposal and vote for proposal', function () {
vegaWalletFaucetAssetsWithoutCheck( vegaWalletFaucetAssetsWithoutCheck(
'fUSDC', fUSDCId,
'1000000', '1000000',
vegaWalletPublicKey vegaWalletPublicKey
); );

View File

@ -55,7 +55,6 @@ context(
function () { function () {
// 2001-STKE-002, 2001-STKE-032 // 2001-STKE-002, 2001-STKE-032
before('visit staking tab and connect vega wallet', function () { before('visit staking tab and connect vega wallet', function () {
cy.clearAllLocalStorage();
cy.visit('/'); cy.visit('/');
ethereumWalletConnect(); ethereumWalletConnect();
// this is a workaround for #2422 which can be removed once issue is resolved // this is a workaround for #2422 which can be removed once issue is resolved
@ -67,6 +66,7 @@ context(
beforeEach( beforeEach(
'teardown wallet & drill into a specific validator', 'teardown wallet & drill into a specific validator',
function () { function () {
cy.clearAllLocalStorage();
cy.reload(); cy.reload();
waitForSpinner(); waitForSpinner();
cy.connectVegaWallet(); cy.connectVegaWallet();

View File

@ -131,7 +131,7 @@ context('Home Page - verify elements on page', { tags: '@smoke' }, function () {
.within(() => { .within(() => {
cy.get('span') cy.get('span')
.first() .first()
.should('have.text', 'http://localhost:3028/query'); .should('have.text', 'http://localhost:3008/graphql');
cy.getByTestId('link').should('exist'); cy.getByTestId('link').should('exist');
}); });
}); });

View File

@ -17,10 +17,15 @@ const banner = 'view-banner';
context('View functionality with public key', { tags: '@smoke' }, function () { context('View functionality with public key', { tags: '@smoke' }, function () {
before('send asset to wallet', function () { before('send asset to wallet', function () {
vegaWalletFaucetAssetsWithoutCheck('fUSDC', '1000000', vegaWalletPubKey); vegaWalletFaucetAssetsWithoutCheck(
'816af99af60d684502a40824758f6b5377e6af48e50a9ee8ef478ecb879ea8bc',
'1000000',
vegaWalletPubKey
);
}); });
beforeEach('visit home page', function () { beforeEach('visit home page', function () {
cy.clearLocalStorage();
cy.visit('/'); cy.visit('/');
waitForSpinner(); waitForSpinner();
cy.connectPublicKey(vegaWalletPubKey); cy.connectPublicKey(vegaWalletPubKey);

View File

@ -13,6 +13,7 @@ context(
{ tags: '@regression' }, { tags: '@regression' },
function () { function () {
before('navigate to rewards page', function () { before('navigate to rewards page', function () {
cy.clearLocalStorage();
cy.visit('/'); cy.visit('/');
navigateTo(navigation.rewards); navigateTo(navigation.rewards);
}); });

View File

@ -282,26 +282,30 @@ context(
describe('Vega wallet with assets', function () { describe('Vega wallet with assets', function () {
const assets = [ const assets = [
{ {
id: 'fUSDC', id: '816af99af60d684502a40824758f6b5377e6af48e50a9ee8ef478ecb879ea8bc',
name: 'USDC (fake)', name: 'USDC (fake)',
symbol: 'fUSDC',
amount: '1000000', amount: '1000000',
expectedAmount: '10.00', expectedAmount: '10.00',
}, },
{ {
id: 'fDAI', id: '8566db7257222b5b7ef2886394ad28b938b28680a54a169bbc795027b89d6665',
name: 'DAI (fake)', name: 'DAI (fake)',
symbol: 'fDAI',
amount: '200000', amount: '200000',
expectedAmount: '2.00', expectedAmount: '2.00',
}, },
{ {
id: 'fBTC', id: '73174a6fb1d5802ba0ac7bd7ab79e0a3a4837b262de0a4e80815a55442692bd0',
name: 'BTC (fake)', name: 'BTC (fake)',
symbol: 'fBTC',
amount: '600000', amount: '600000',
expectedAmount: '6.00', expectedAmount: '6.00',
}, },
{ {
id: 'fEURO', id: 'e02d4c15d790d1d2dffaf2dcd1cf06a1fe656656cf4ed18c8ce99f9e83643567',
name: 'EURO (fake)', name: 'EURO (fake)',
symbol: 'fEURO',
amount: '800000', amount: '800000',
expectedAmount: '8.00', expectedAmount: '8.00',
}, },
@ -322,15 +326,15 @@ context(
}); });
}); });
for (const { id, name, expectedAmount } of assets) { for (const { name, symbol, expectedAmount } of assets) {
it(`should see ${id} within vega wallet`, () => { it(`should see ${name} within vega wallet`, () => {
cy.get(walletContainer).within(() => { cy.get(walletContainer).within(() => {
cy.get(vegaWalletCurrencyTitle) cy.get(vegaWalletCurrencyTitle)
.contains(id, txTimeout) .contains(name, txTimeout)
.should('be.visible'); .should('be.visible');
cy.get(vegaWalletCurrencyTitle) cy.get(vegaWalletCurrencyTitle)
.contains(id) .contains(name)
.parent() .parent()
.siblings() .siblings()
.invoke('text') .invoke('text')
@ -338,9 +342,9 @@ context(
.should('be.gte', parseFloat(expectedAmount)); .should('be.gte', parseFloat(expectedAmount));
cy.get(vegaWalletCurrencyTitle) cy.get(vegaWalletCurrencyTitle)
.contains(id) .contains(name)
.parent() .parent()
.contains(name); .contains(symbol);
}); });
}); });
} }

View File

@ -54,7 +54,7 @@ export function stakingValidatorPageRemoveStake(stake: string) {
.and('contain', `Remove ${stake} $VEGA tokens at the end of epoch`) .and('contain', `Remove ${stake} $VEGA tokens at the end of epoch`)
.and('be.visible') .and('be.visible')
.click(); .click();
cy.contains('been removed from validator').should('be.visible'); cy.contains('been removed from validator', txTimeout).should('be.visible');
closeDialog(); closeDialog();
} }
@ -185,7 +185,7 @@ export function validateValidatorListTotalStakeAndShare(
) { ) {
cy.contains('Loading...', epochTimeout).should('not.exist'); cy.contains('Loading...', epochTimeout).should('not.exist');
waitForBeginningOfEpoch(); waitForBeginningOfEpoch();
cy.get(`[row-id="${positionOnList}"]:visible`) cy.get(`[row-id="${positionOnList}"]`)
.eq(1) .eq(1)
.within(() => { .within(() => {
cy.getByTestId(stakeValidatorListTotalStake, epochTimeout).should( cy.getByTestId(stakeValidatorListTotalStake, epochTimeout).should(
@ -221,12 +221,12 @@ export function ensureSpecifiedUnstakedTokensAreAssociated(
} }
export function closeStakingDialog() { export function closeStakingDialog() {
cy.get('[data-testid="dialog-title"]:visible').should( cy.getByTestId('dialog-title').should(
'contain.text', 'contain.text',
'At the beginning of the next epoch' 'At the beginning of the next epoch'
); );
cy.get('[data-testid="dialog-content"]:visible') cy.getByTestId('dialog-content')
.first() .last()
.within(() => { .within(() => {
cy.get('a').should('have.text', 'Back to Staking').click(); cy.get('a').should('have.text', 'Back to Staking').click();
}); });

View File

@ -9,7 +9,7 @@ import {
import { ethers, Wallet } from 'ethers'; import { ethers, Wallet } from 'ethers';
const associatedAmountInWallet = '[data-testid="associated-amount"]:visible'; const associatedAmountInWallet = '[data-testid="associated-amount"]:visible';
const vegaWalletContainer = 'aside [data-testid="vega-wallet"]:visible'; const vegaWalletContainer = 'aside [data-testid="vega-wallet"]';
const vegaWalletMnemonic = Cypress.env('vegaWalletMnemonic'); const vegaWalletMnemonic = Cypress.env('vegaWalletMnemonic');
const vegaWalletPubKey = Cypress.env('vegaWalletPublicKey'); const vegaWalletPubKey = Cypress.env('vegaWalletPublicKey');
const vegaTokenContractAddress = Cypress.env('vegaTokenContractAddress'); const vegaTokenContractAddress = Cypress.env('vegaTokenContractAddress');
@ -105,25 +105,24 @@ async function vegaWalletTeardownStaking(stakingBridgeContract: StakingBridge) {
{ timeout: transactionTimeout, log: false } { timeout: transactionTimeout, log: false }
).then((stakeBalance) => { ).then((stakeBalance) => {
if (Number(stakeBalance) != 0) { if (Number(stakeBalance) != 0) {
cy.get(vegaWalletContainer).within(() => { cy.get('[data-testid="vega-wallet-balance-unstaked"]:visible').within(
cy.getByTestId('currency-value') () => {
.invoke('text') cy.get(associatedAmountInWallet)
.then(($associatedAmount) => { .invoke('text')
cy.wrap( .then(($walletAmount) => {
stakingBridgeContract.remove_stake( cy.wrap(
String(stakeBalance), stakingBridgeContract.remove_stake(
vegaWalletPubKey String(stakeBalance),
), vegaWalletPubKey
{ timeout: transactionTimeout, log: false } ),
); { timeout: transactionTimeout, log: false }
cy.get("[data-testid='currency-value']") );
.first() cy.get(associatedAmountInWallet, {
.invoke('text', {
timeout: transactionTimeout, timeout: transactionTimeout,
}) }).should('not.have.text', $walletAmount);
.should('not.eq', $associatedAmount); });
}); }
}); );
} }
}); });
} }

View File

@ -8,7 +8,7 @@ NX_GITHUB_FEEDBACK_URL=https://github.com/vegaprotocol/feedback/discussions
NX_ANNOUNCEMENTS_CONFIG_URL=https://raw.githubusercontent.com/vegaprotocol/announcements/test/announcements.json NX_ANNOUNCEMENTS_CONFIG_URL=https://raw.githubusercontent.com/vegaprotocol/announcements/test/announcements.json
NX_VEGA_CONFIG_URL='' NX_VEGA_CONFIG_URL=''
NX_VEGA_URL=http://localhost:3028/query NX_VEGA_URL=http://localhost:3008/graphql
NX_ETHEREUM_CHAIN_ID=1440 NX_ETHEREUM_CHAIN_ID=1440
NX_ETH_URL_CONNECT=1 NX_ETH_URL_CONNECT=1
NX_ETH_WALLET_MNEMONIC=ozone access unlock valid olympic save include omit supply green clown session NX_ETH_WALLET_MNEMONIC=ozone access unlock valid olympic save include omit supply green clown session

View File

@ -1,3 +1,3 @@
# App configuration variables # App configuration variables
NX_VEGA_URL=http://localhost:3028/query NX_VEGA_URL=http://localhost:3008/graphql
NX_VEGA_ENV=LOCAL NX_VEGA_ENV=LOCAL

View File

@ -8,7 +8,7 @@ NX_VEGA_ENV=CUSTOM
NX_VEGA_EXPLORER_URL=https://explorer.fairground.wtf NX_VEGA_EXPLORER_URL=https://explorer.fairground.wtf
NX_VEGA_NETWORKS={\"TESTNET\":\"https://console.fairground.wtf\",\"STAGNET1\":\"https://stagnet1.console.vega.xyz\",\"STAGNET3\":\"https://stagnet3.console.vega.xyz\"} NX_VEGA_NETWORKS={\"TESTNET\":\"https://console.fairground.wtf\",\"STAGNET1\":\"https://stagnet1.console.vega.xyz\",\"STAGNET3\":\"https://stagnet3.console.vega.xyz\"}
NX_VEGA_TOKEN_URL=https://token.fairground.wtf NX_VEGA_TOKEN_URL=https://token.fairground.wtf
NX_VEGA_URL=http://localhost:3028/query NX_VEGA_URL=http://localhost:3008/graphql
NX_VEGA_WALLET_URL=http://localhost:1789 NX_VEGA_WALLET_URL=http://localhost:1789
NX_ETH_LOCAL_PROVIDER_URL=http://localhost:8545/ NX_ETH_LOCAL_PROVIDER_URL=http://localhost:8545/
NX_ETH_WALLET_MNEMONIC="ozone access unlock valid olympic save include omit supply green clown session" NX_ETH_WALLET_MNEMONIC="ozone access unlock valid olympic save include omit supply green clown session"
@ -27,6 +27,6 @@ CYPRESS_VEGA_ENV=CUSTOM
CYPRESS_VEGA_PUBLIC_KEY=02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65 CYPRESS_VEGA_PUBLIC_KEY=02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65
CYPRESS_VEGA_PUBLIC_KEY2=7f9cf07d3a9905b1a61a1069f7a758855da428bc0f4a97de87f48644bfc25535 CYPRESS_VEGA_PUBLIC_KEY2=7f9cf07d3a9905b1a61a1069f7a758855da428bc0f4a97de87f48644bfc25535
CYPRESS_VEGA_TOKEN_URL=https://token.fairground.wtf CYPRESS_VEGA_TOKEN_URL=https://token.fairground.wtf
CYPRESS_VEGA_URL=http://localhost:3028/query CYPRESS_VEGA_URL=http://localhost:3008/graphql
CYPRESS_VEGA_WALLET_URL=http://localhost:1789 CYPRESS_VEGA_WALLET_URL=http://localhost:1789
CYPRESS_VEGA_WALLET_API_TOKEN= CYPRESS_VEGA_WALLET_API_TOKEN=

View File

@ -7,7 +7,7 @@ NX_VEGA_ENV=CUSTOM
NX_VEGA_EXPLORER_URL=https://explorer.fairground.wtf NX_VEGA_EXPLORER_URL=https://explorer.fairground.wtf
NX_VEGA_NETWORKS={\"TESTNET\":\"https://console.fairground.wtf\",\"STAGNET1\":\"https://stagnet1.console.vega.xyz\",\"STAGNET3\":\"https://stagnet3.console.vega.xyz\"} NX_VEGA_NETWORKS={\"TESTNET\":\"https://console.fairground.wtf\",\"STAGNET1\":\"https://stagnet1.console.vega.xyz\",\"STAGNET3\":\"https://stagnet3.console.vega.xyz\"}
NX_VEGA_TOKEN_URL=https://token.fairground.wtf NX_VEGA_TOKEN_URL=https://token.fairground.wtf
NX_VEGA_URL=http://localhost:3028/query NX_VEGA_URL=http://localhost:3008/graphql
NX_VEGA_WALLET_URL=http://localhost:1789 NX_VEGA_WALLET_URL=http://localhost:1789
NX_ETH_LOCAL_PROVIDER_URL=http://localhost:8545/ NX_ETH_LOCAL_PROVIDER_URL=http://localhost:8545/
NX_ETH_WALLET_MNEMONIC="ozone access unlock valid olympic save include omit supply green clown session" NX_ETH_WALLET_MNEMONIC="ozone access unlock valid olympic save include omit supply green clown session"
@ -24,6 +24,6 @@ CYPRESS_VEGA_ENV=CUSTOM
CYPRESS_VEGA_PUBLIC_KEY=02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65 CYPRESS_VEGA_PUBLIC_KEY=02eceaba4df2bef76ea10caf728d8a099a2aa846cced25737cccaa9812342f65
CYPRESS_VEGA_PUBLIC_KEY2=7f9cf07d3a9905b1a61a1069f7a758855da428bc0f4a97de87f48644bfc25535 CYPRESS_VEGA_PUBLIC_KEY2=7f9cf07d3a9905b1a61a1069f7a758855da428bc0f4a97de87f48644bfc25535
CYPRESS_VEGA_TOKEN_URL=https://token.fairground.wtf CYPRESS_VEGA_TOKEN_URL=https://token.fairground.wtf
CYPRESS_VEGA_URL=http://localhost:3028/query CYPRESS_VEGA_URL=http://localhost:3008/graphql
CYPRESS_VEGA_WALLET_URL=http://localhost:1789 CYPRESS_VEGA_WALLET_URL=http://localhost:1789
CYPRESS_VEGA_WALLET_API_TOKEN= CYPRESS_VEGA_WALLET_API_TOKEN=

View File

@ -1,12 +1,12 @@
import { closeWelcomeDialog } from '../support/helpers';
describe('Settings page', { tags: '@smoke' }, () => { describe('Settings page', { tags: '@smoke' }, () => {
beforeEach(() => { beforeEach(() => {
cy.clearLocalStorage().then(() => { cy.clearLocalStorage().then(() => {
cy.mockTradingPage(); cy.mockTradingPage();
cy.mockSubscription(); cy.mockSubscription();
cy.visit('/'); cy.visit('/');
cy.get('[role=dialog]').within(() => { closeWelcomeDialog();
cy.getByTestId('dialog-close').click();
});
cy.get('[aria-label="cog icon"]').click(); cy.get('[aria-label="cog icon"]').click();
}); });
}); });

View File

@ -25,12 +25,7 @@ describe('accounts', { tags: '@smoke' }, () => {
cy.getByTestId('tab-accounts') cy.getByTestId('tab-accounts')
.get(tradingAccountRowId) .get(tradingAccountRowId)
.find('[col-id="accounts-actions"]') .find('[col-id="accounts-actions"]')
.should('have.text', ''); .should('have.text', ' ');
cy.getByTestId('tab-accounts')
.get(tradingAccountRowId)
.find('[col-id="accounts-actions"]')
.should('have.text', '');
cy.getByTestId('tab-accounts') cy.getByTestId('tab-accounts')
.get(tradingAccountRowId) .get(tradingAccountRowId)

View File

@ -9,3 +9,8 @@ export const selectAsset = (assetIndex: number) => {
// eslint-disable-next-line // eslint-disable-next-line
cy.wait(100); cy.wait(100);
}; };
export const closeWelcomeDialog = () => {
cy.getByTestId('select-market-list').should('exist');
cy.getByTestId('dialog-close').click();
};

View File

@ -7,7 +7,7 @@ NX_VEGA_ENV=CUSTOM
NX_VEGA_EXPLORER_URL=https://stagnet3.explorer.vega.xyz NX_VEGA_EXPLORER_URL=https://stagnet3.explorer.vega.xyz
NX_VEGA_NETWORKS={\"TESTNET\":\"https://console.fairground.wtf\",\"STAGNET1\":\"https://stagnet1.console.vega.xyz\",\"STAGNET3\":\"https://stagnet3.console.vega.xyz\"} NX_VEGA_NETWORKS={\"TESTNET\":\"https://console.fairground.wtf\",\"STAGNET1\":\"https://stagnet1.console.vega.xyz\",\"STAGNET3\":\"https://stagnet3.console.vega.xyz\"}
NX_VEGA_TOKEN_URL=https://token.fairground.wtf NX_VEGA_TOKEN_URL=https://token.fairground.wtf
NX_VEGA_URL=http://localhost:3028/query NX_VEGA_URL=http://localhost:3008/graphql
NX_VEGA_WALLET_URL=http://localhost:1789 NX_VEGA_WALLET_URL=http://localhost:1789
NX_VEGA_DOCS_URL=https://docs.vega.xyz/testnet NX_VEGA_DOCS_URL=https://docs.vega.xyz/testnet
NX_VEGA_REPO_URL=https://github.com/vegaprotocol/vega/releases NX_VEGA_REPO_URL=https://github.com/vegaprotocol/vega/releases

View File

@ -1 +1,4 @@
export const ASSET_ID_FOR_MARKET = 'fUSDC'; export const ASSET_ID_FOR_MARKET =
'816af99af60d684502a40824758f6b5377e6af48e50a9ee8ef478ecb879ea8bc';
export const ASSET_SYMBOL = 'fUSDC';

View File

@ -4,7 +4,7 @@ import { createLog } from './logging';
import type { ProposalSubmissionBody } from '@vegaprotocol/wallet'; import type { ProposalSubmissionBody } from '@vegaprotocol/wallet';
import { getProposal } from './get-proposal'; import { getProposal } from './get-proposal';
import { sendVegaTx } from './wallet-client'; import { sendVegaTx } from './wallet-client';
import { ASSET_ID_FOR_MARKET } from './contants'; import { ASSET_ID_FOR_MARKET, ASSET_SYMBOL } from './contants';
const log = createLog('propose-market'); const log = createLog('propose-market');
@ -43,7 +43,7 @@ function createNewMarketProposal(): ProposalSubmissionBody {
code: 'TEST.24h', code: 'TEST.24h',
future: { future: {
settlementAsset: ASSET_ID_FOR_MARKET, settlementAsset: ASSET_ID_FOR_MARKET,
quoteName: ASSET_ID_FOR_MARKET, quoteName: ASSET_SYMBOL,
dataSourceSpecForSettlementData: { dataSourceSpecForSettlementData: {
external: { external: {
oracle: { oracle: {

View File

@ -66,7 +66,7 @@ export function addGetAssets() {
cy.request({ cy.request({
method: 'POST', method: 'POST',
url: 'http://localhost:3028/query', url: 'http://localhost:3008/graphql',
body: { body: {
query: print(query), query: print(query),
}, },

View File

@ -24,7 +24,7 @@ export function addGetNetworkParameters() {
}`; }`;
cy.request({ cy.request({
method: 'POST', method: 'POST',
url: `http://localhost:3028/query`, url: `http://localhost:3008/graphql`,
body: { body: {
query: mutation, query: mutation,
}, },

View File

@ -43,7 +43,7 @@ export function addGetNodes() {
cy.request({ cy.request({
method: 'POST', method: 'POST',
url: `http://localhost:3028/query`, url: `http://localhost:3008/graphql`,
body: { body: {
query: print(query), query: print(query),
}, },

View File

@ -1,7 +1,7 @@
{ {
"app_state": { "app_state": {
"assets": { "assets": {
"fBTC": { "73174a6fb1d5802ba0ac7bd7ab79e0a3a4837b262de0a4e80815a55442692bd0": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "BTC (fake)", "name": "BTC (fake)",
@ -13,7 +13,7 @@
} }
} }
}, },
"fDAI": { "8566db7257222b5b7ef2886394ad28b938b28680a54a169bbc795027b89d6665": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "DAI (fake)", "name": "DAI (fake)",
@ -25,7 +25,7 @@
} }
} }
}, },
"fEURO": { "e02d4c15d790d1d2dffaf2dcd1cf06a1fe656656cf4ed18c8ce99f9e83643567": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "EURO (fake)", "name": "EURO (fake)",
@ -37,7 +37,7 @@
} }
} }
}, },
"fUSDC": { "816af99af60d684502a40824758f6b5377e6af48e50a9ee8ef478ecb879ea8bc": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "USDC (fake)", "name": "USDC (fake)",
@ -49,7 +49,7 @@
} }
} }
}, },
"XYZalpha": { "62dfb1ab1cd488862b416cf163c75bc9a279226c65ac287c0dd67650daa444ee": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "XYZ (α alpha)", "name": "XYZ (α alpha)",
@ -61,7 +61,7 @@
} }
} }
}, },
"XYZbeta": { "dedb3c42e7bc88d98a7fe0d73c7b9870b34c62c79a713071bd4d645ef7c216ee": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "XYZ (β beta)", "name": "XYZ (β beta)",
@ -73,7 +73,7 @@
} }
} }
}, },
"XYZgamma": { "a0ea8a48eb5cb024e66be5777bea75165ffcaf0be82d9047e376ce352e202f76": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "XYZ (γ gamma)", "name": "XYZ (γ gamma)",
@ -85,7 +85,7 @@
} }
} }
}, },
"XYZdelta": { "9ed5dd08c88e38f1c92cb8f056bd9d0507512c9ea4e6f308936f73646187b8e9": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "XYZ (δ delta)", "name": "XYZ (δ delta)",
@ -97,7 +97,7 @@
} }
} }
}, },
"XYZepsilon": { "bdcde894dcc4ffa11d6192065d84f9dcc75814cf24760ff4f3e50d64eaddbc02": {
"min_lp_stake": "1", "min_lp_stake": "1",
"decimals": 5, "decimals": 5,
"name": "XYZ (ε epsilon)", "name": "XYZ (ε epsilon)",