Skip to content

Commit ae5e694

Browse files
V48 (impl-only): Fix marketing landing tests for buy/sell CTAs
Align assertions with AssetPack buyer/seller copy from the landing redesign.
1 parent fc7bc3a commit ae5e694

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

uapi/tests/marketingLandingPage.test.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ describe('MarketingLandingPage', () => {
8383
screen.getByText('Bitcode is auditable market infrastructure for technical knowledge.'),
8484
).toBeInTheDocument();
8585
expect(
86-
screen.getByRole('link', { name: 'Request Read' }),
86+
screen.getByRole('link', { name: 'Buy AssetPacks' }),
8787
).toHaveAttribute('href', '/reads');
88-
expect(screen.getByRole('link', { name: 'Read docs' })).toHaveAttribute(
88+
expect(screen.getByRole('link', { name: 'Sell AssetPacks' })).toHaveAttribute(
8989
'href',
90-
'/docs',
90+
'/deposits',
9191
);
9292
expect(screen.getByRole('button', { name: 'April' })).toHaveAttribute('aria-pressed', 'true');
9393
expect(screen.getByRole('button', { name: 'March' })).toBeInTheDocument();
@@ -97,9 +97,10 @@ describe('MarketingLandingPage', () => {
9797
expect(screen.getByText('Depot Surface')).toBeInTheDocument();
9898
expect(screen.getByText('Measurement vector')).toBeInTheDocument();
9999
expect(screen.getByText('Verified access')).toBeInTheDocument();
100-
expect(screen.getByText('ASSETPACKS')).toBeInTheDocument();
101-
expect(screen.getByText('BTD VOLUME')).toBeInTheDocument();
100+
expect(screen.getByText('SELL ASSETPACKS')).toBeInTheDocument();
101+
expect(screen.getByText('BUY WITH NEED')).toBeInTheDocument();
102102
expect(screen.getByText('BTC SETTLEMENT')).toBeInTheDocument();
103+
expect(screen.getByText('PROOF READBACK')).toBeInTheDocument();
103104
expect(screen.getAllByText('Packs').length).toBeGreaterThan(0);
104105
expect(document.getElementById('bitcodeDemonstrationRoot')).toBeNull();
105106
expect(document.querySelector('iframe')).toBeNull();
@@ -116,28 +117,28 @@ describe('MarketingLandingPage', () => {
116117
expect(section).toBeInTheDocument();
117118
expect(screen.getByText('Commercial testnet')).toBeInTheDocument();
118119
expect(
119-
screen.getByText('Sell and buy IP the Bitcode way, live on BTC testnet.'),
120+
screen.getByText('Sell and buy AssetPacks on BTC testnet.'),
120121
).toBeInTheDocument();
121122
expect(
122-
screen.getByText(/BTC amounts are testnet and free while everything else stays production-intended/u),
123+
screen.getByText(/Testnet BTC is free; measurements, quotes, settlement order/u),
123124
).toBeInTheDocument();
124-
expect(screen.getByRole('link', { name: /01\s*Deposit IP/u })).toHaveAttribute(
125+
expect(screen.getByRole('link', { name: /01\s*Sell \(Deposit\)/u })).toHaveAttribute(
125126
'href',
126127
'/deposits',
127128
);
128-
expect(screen.getByRole('link', { name: /02\s*Read and buy/u })).toHaveAttribute(
129+
expect(screen.getByRole('link', { name: /02\s*Buy \(Read\)/u })).toHaveAttribute(
129130
'href',
130131
'/reads',
131132
);
132-
expect(screen.getByRole('link', { name: /03\s*Audit on Packs/u })).toHaveAttribute(
133+
expect(screen.getByRole('link', { name: /03\s*Audit \(Packs\)/u })).toHaveAttribute(
133134
'href',
134135
'/packs',
135136
);
136137
expect(
137138
screen.getByText(/protocol law and proof readback decide state/u),
138139
).toBeInTheDocument();
139140
expect(
140-
screen.getByText(/source-bearing AssetPack contents stay withheld until BTC finality and BTD rights transfer/u),
141+
screen.getByText(/protected source stays withheld until BTC finality and BTD rights transfer/u),
141142
).toBeInTheDocument();
142143
});
143144
});

0 commit comments

Comments
 (0)