Some checks failed
Security / Security check (push) Failing after 1s
- Store hero: 'TODAY' badge only for an operator-accepted story; the rotating compiled-in fallback deck now says 'FEATURED' (no false freshness claim). Policy as a top-level function with unit tests. - Audit filter chips: standard label typography instead of mono — mono stays reserved for paths and identifiers. - DE chain wording: 'Hash-Kette geprüft' as the one confirmation term (audit header now matches the doctor pill); 'intakt' stays the state headline. EN was already consistent. - Workspace switcher: contrast bump for the sealed-area 'stopped' label. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
15 lines
463 B
Dart
15 lines
463 B
Dart
import 'package:chain_studio/pages/store.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
group('store hero badge policy', () {
|
|
test('a single operator-accepted story may claim TODAY', () {
|
|
expect(storeDeckIsAcceptedToday(1), isTrue);
|
|
});
|
|
|
|
test('the rotating fallback deck must not claim TODAY', () {
|
|
expect(storeDeckIsAcceptedToday(2), isFalse);
|
|
expect(storeDeckIsAcceptedToday(8), isFalse);
|
|
});
|
|
});
|
|
}
|