feat(app): section titles read as dividers; one Rendered/Raw switch per definition; schedule rows with labelled facts and a status pill
This commit is contained in:
@@ -282,6 +282,23 @@ void main() {
|
||||
expect(outcomes.strutStyle, raw.strutStyle);
|
||||
});
|
||||
|
||||
testWidgets('one Rendered/Raw switch governs the whole definition', (
|
||||
tester,
|
||||
) async {
|
||||
await tester.pumpWidget(_material(_view()));
|
||||
expect(find.byKey(const Key('markdown-source-mode')), findsOneWidget);
|
||||
expect(_text('Plan the change.'), findsOneWidget);
|
||||
await tester.tap(find.text('Rendered'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(
|
||||
find
|
||||
.byType(SelectableText)
|
||||
.evaluate()
|
||||
.map((e) => (e.widget as SelectableText).data),
|
||||
isNot(contains('Plan the change.')),
|
||||
);
|
||||
});
|
||||
|
||||
test('field labels are the web words', () {
|
||||
expect(stageConfigLabel('budget_usd'), 'Budget (USD)');
|
||||
expect(stageConfigLabel('budget_tokens'), 'Budget (tokens)');
|
||||
|
||||
Reference in New Issue
Block a user