fix(e2e): add suite sync data fixture and update tests

This commit is contained in:
honzauher
2026-02-13 16:53:04 +01:00
committed by Martin Vere Cihlar
parent 61ce9fba8b
commit ec9dcca09a
3 changed files with 41 additions and 37 deletions

View File

@@ -0,0 +1,33 @@
import { accountDescriptor, ownerSecret, walletDescriptor } from './default-metadata-ids';
export const walletSeed = {
id: 'ya1CCDTCVPyRa6egTac7yg',
walletDescriptor,
label: 'Evolu synced wallet',
};
export const accountSeed = {
id: 'RSZ0aKqUcO_e0WoQO32x4w',
accountDescriptor,
networkSymbol: 'btc',
label: 'Evolu synced BTC account',
};
export const addressSeed = {
id: 'DmBRN-GwcRyC-cuTPczSXg',
label: 'Evolu synced BTC address',
address: 'bc1qkkr2uvry034tsj4p52za2pg42ug4pxg5qfxyfa',
accountDescriptor,
networkSymbol: 'btc',
};
export const outputSeed = {
id: 'TR7Axj6suVoVTBJO5saruA',
accountDescriptor,
label: 'Evolu synced output',
networkSymbol: 'btc',
outputIndex: '0',
txId: 'aa545d95cf07892e1ae70b40e856b9b476f703e2e20647d0985830fd7b734393',
};
export { ownerSecret };

View File

@@ -1,16 +1,14 @@
import { accountSeed } from './suite-sync/sync-from-relay.test';
import { ownerSecret } from '../../fixtures/metadata/default-metadata-ids';
import { accountSeed, ownerSecret } from '../../fixtures/metadata/suite-sync-data';
import { AccountLabelId } from '../../support/enums/accountLabelId';
import { expect, test } from '../../support/fixtures';
import { MetadataProvider } from '../../support/mocks/metadataMock';
test.describe('Labeling migration', {tag: ['@webOnly', '@specificFirmware', '@T3W1', '@T3T1'] }, () => {
test.use({ firmwareVersion: '2-main' });
test.describe('Labeling migration', { tag: ['@webOnly', '@T3W1', '@T3T1'] }, () => {
test.use({ wipeEvoluRelay: true });
test.beforeEach(async ({ metadataMock, evoluClient, onboardingPage }) => {
await metadataMock.start(MetadataProvider.DROPBOX);
await test.step('Seed Evolu relay server', async () => {
evoluClient.wipeAndRestartServer();
await evoluClient.init({ ownerSecret });
evoluClient.writeTo('account', accountSeed);
});

View File

@@ -1,41 +1,14 @@
import {
accountDescriptor,
accountSeed,
addressSeed,
outputSeed,
ownerSecret,
walletDescriptor,
} from '../../../fixtures/metadata/default-metadata-ids';
walletSeed,
} from '../../../fixtures/metadata/suite-sync-data';
import { isWebProject } from '../../../support/common';
import { expect, test } from '../../../support/fixtures';
const defaultWalletIndex = 0;
export const walletSeed = {
id: 'ya1CCDTCVPyRa6egTac7yg',
walletDescriptor,
label: 'Evolu synced wallet',
};
export const accountSeed = {
id: 'RSZ0aKqUcO_e0WoQO32x4w',
accountDescriptor,
networkSymbol: 'btc',
label: 'Evolu synced BTC account',
};
export const addressSeed = {
id: 'DmBRN-GwcRyC-cuTPczSXg',
label: 'Evolu synced BTC address',
address: 'bc1qkkr2uvry034tsj4p52za2pg42ug4pxg5qfxyfa',
accountDescriptor,
networkSymbol: 'btc',
};
const outputSeed = {
id: 'TR7Axj6suVoVTBJO5saruA',
accountDescriptor,
label: 'Evolu synced output',
networkSymbol: 'btc',
outputIndex: '0',
txId: 'aa545d95cf07892e1ae70b40e856b9b476f703e2e20647d0985830fd7b734393',
};
test.describe('Suite Sync - Labelling', { tag: ['@webOnly', '@T3W1', '@T3T1'] }, () => {
test.use({ wipeEvoluRelay: true });