Refine backendless share intake
This commit is contained in:
@@ -25,13 +25,23 @@ void main() {
|
||||
);
|
||||
addTearDown(container.dispose);
|
||||
|
||||
await container.read(localRepositoryProvider.future);
|
||||
await container
|
||||
.read(localRepositoryProvider.notifier)
|
||||
.addPerson(
|
||||
name: 'Ava Hart',
|
||||
relationship: 'Friend',
|
||||
notes: '',
|
||||
tags: const <String>[],
|
||||
);
|
||||
final LocalDataState seeded = await container.read(
|
||||
localRepositoryProvider.future,
|
||||
);
|
||||
final String personId = seeded.people.first.id;
|
||||
await container
|
||||
.read(localRepositoryProvider.notifier)
|
||||
.upsertInferredPreferenceSignalObservation(
|
||||
personId: seeded.people.first.id,
|
||||
personId: personId,
|
||||
key: 'drink:tea',
|
||||
label: 'Tea',
|
||||
category: 'drink',
|
||||
@@ -58,7 +68,7 @@ void main() {
|
||||
expect(find.text('Explore'), findsOneWidget);
|
||||
|
||||
final Finder avaNode = find.byKey(
|
||||
const ValueKey<String>('graph-node-p-ava'),
|
||||
ValueKey<String>('graph-node-$personId'),
|
||||
);
|
||||
expect(avaNode, findsOneWidget);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user