@@ -62,11 +62,9 @@ describe('SignInPageBlueprint', () => {
|
||||
|
||||
const tester = createExtensionTester(extension);
|
||||
|
||||
const Element = tester.get(SignInPageBlueprint.dataRefs.component);
|
||||
const Component = tester.get(SignInPageBlueprint.dataRefs.component);
|
||||
|
||||
expect(Element).toBeDefined();
|
||||
|
||||
renderInTestApp(<Element onSignInSuccess={() => {}} />);
|
||||
renderInTestApp(<Component onSignInSuccess={() => {}} />);
|
||||
|
||||
await waitFor(() => {
|
||||
expect(screen.getByTestId('mock-sign-in')).toBeInTheDocument();
|
||||
|
||||
@@ -339,6 +339,9 @@ describe('createExtensionTester', () => {
|
||||
const extension = createExtension({
|
||||
namespace: 'test',
|
||||
name: 'e1',
|
||||
inputs: {
|
||||
ignored: createExtensionInput([stringDataRef]),
|
||||
},
|
||||
attachTo: { id: 'ignored', input: 'ignored' },
|
||||
output: [coreExtensionData.reactElement],
|
||||
factory: () => [coreExtensionData.reactElement(<div>bob</div>)],
|
||||
@@ -346,8 +349,8 @@ describe('createExtensionTester', () => {
|
||||
|
||||
const extraExtension = createExtension({
|
||||
namespace: 'test',
|
||||
name: 'e1',
|
||||
attachTo: { id: 'ignored', input: 'ignored' },
|
||||
name: 'e2',
|
||||
attachTo: { id: 'test/e1', input: 'ignored' },
|
||||
output: [stringDataRef, internalRef.optional()],
|
||||
factory: () => [stringDataRef('test-text')],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user