@brightlayer-ui/react-native-auth-workflow
Version:
Re-usable workflow components for Authentication and Registration within Eaton applications.
15 lines (14 loc) • 685 B
JavaScript
import React from 'react';
import '@testing-library/jest-dom';
import { CreatePasswordScreenBase } from '../../screens';
import { render, screen } from '@testing-library/react-native';
import { PaperProvider } from 'react-native-paper';
jest.useFakeTimers();
describe('CreatePasswordScreenBase Tests', () => {
it('should render correctly', () => {
render(React.createElement(PaperProvider, null,
React.createElement(CreatePasswordScreenBase, null)));
expect(screen.getByTestId('blui-set-password-password-text-field')).toBeOnTheScreen();
expect(screen.getByTestId('blui-set-password-confirm-password-text-field')).toBeOnTheScreen();
});
});