Emitted when an EBT Element’s input field is able to respond to user interactions like keypress, focus, etc.

You can listen for the ready event during integration testing. You can also use the ready event to change the UI when an EBT Element is ready for user interaction.

{
  type: 'ready',
  usecase: 'ebt_pin_check_balance',
  error: null
}

Example

Test your integration using the ready event

ebtBalanceCheckElement.on('ready', (event) => {
  // element’s input field is ready to receive keypress and focus events

  await page.click(#test-balance-check)
  // mock typing EBT PIN
 });

Hide loading skeleton when a ForageEbtBalanceElement is able to respond to user interactions

ebtBalanceCheckElement.on('ready', (event) => {
  // hide skeleton or loader
  setEbtFormLoading(false)
});