Skip to content

Commit

Permalink
remove 'public key not added' test as redundant by this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Sep 30, 2024
1 parent cc94e13 commit 52f4c61
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/e2e/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,30 +70,4 @@ test.describe('should fail to connect if:', () => {
}),
).toEqual({ connected: false });
});

test('public key not added', async ({ popup, i18n }) => {
const { CONNECT_WALLET_ADDRESS_URL } = process.env;
expect(CONNECT_WALLET_ADDRESS_URL).toBeDefined();

const connectButton = await fillPopup(popup, {
walletAddressUrl: CONNECT_WALLET_ADDRESS_URL!,
amount: '10',
recurring: false,
});
await expect(popup.locator('p.text-error')).not.toBeAttached();
await expect(connectButton).not.toBeDisabled();

await connectButton.click();
await popup.waitForTimeout(1000);
await expect(popup.locator('.text-error span').first()).toHaveText(
i18n.getMessage('connectWallet_error_failedAutoKeyAdd'),
);

await connectButton.click();
await popup.waitForTimeout(1000);
await expect(popup.getByTestId('ErrorMessage')).toHaveText(
i18n.getMessage('connectWallet_error_invalidClient'),
);
await expect(popup.getByTestId('ErrorMessage')).toHaveRole('alert');
});
});

0 comments on commit 52f4c61

Please sign in to comment.