Skip to content

Commit

Permalink
CU-86dt1fxtx - Implement Contextual Messages on WcSdk on both sides
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoDizConde committed May 15, 2024
1 parent b932014 commit 74dd62c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/DappMethods.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ test('Test send a contextual with a Verify Success on dapp (React)', async ({ co
await connectReactDappToNewReactAccount(context, dappPage, walletPage)
await dappPage.awaitAndClickTestId('hello-world__verify-with-context')
await acceptPendingRequestToReactWallet(walletPage, async (walletPageBeforeAcceptMethod) => {
const contextMessage = await walletPageBeforeAcceptMethod.awaitAndGetTestId('request-card__contextual_message')
const contextMessage = await walletPageBeforeAcceptMethod.awaitAndGetTestId('request-card__contextual-message')
expect(contextMessage).toBeDefined()
expect(await getCleanInnerHTML(contextMessage)).toBe(DAPP_METHOD_CONTEXT_MESSAGE)
})
Expand Down
2 changes: 1 addition & 1 deletion examples/wc-wallet-react/src/components/RequestCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function RequestCard(
<Text fontSize="0.875rem" color="#888888" fontWeight="bold" mt="0.875rem">
Method Contextual Message
</Text>
<Text fontSize="0.875rem" mt="0.5rem" data-testid="request-card__contextual_message">
<Text fontSize="0.875rem" mt="0.5rem" data-testid="request-card__contextual-message">
{contextualMessage}
</Text>
<Text fontSize="0.875rem" color="#888888" fontWeight="bold" mt="0.875rem">
Expand Down

0 comments on commit 74dd62c

Please sign in to comment.