mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
15 lines
459 B
JavaScript
15 lines
459 B
JavaScript
import {render, screen} from '@testing-library/react';
|
|
import '@testing-library/jest-dom';
|
|
import {CheckoutHandler} from "../Components/checkout-handler";
|
|
|
|
test('checkout handler label display given text', async () => {
|
|
render(
|
|
<CheckoutHandler
|
|
getCardFieldsForm={() => {}}
|
|
saveCardText="Foo"
|
|
is_vaulting_enabled={true}
|
|
/>
|
|
);
|
|
|
|
await expect(screen.getByLabelText('Foo')).toBeInTheDocument();
|
|
});
|