Figma 설명 프레임 반영 — 로그인·온보딩·스플래시 · HOME · GALAXY · 퀘스트·이클립스·알림
This commit is contained in:
@@ -118,7 +118,7 @@ void main() {
|
||||
|
||||
testWidgets('이름을 넣고 만들면 기본 행성 변경을 되묻는다', (tester) async {
|
||||
await _pump(tester, const NebulaCreateScreen());
|
||||
await tester.enterText(find.byType(TextField), 'BTS_RM');
|
||||
await tester.enterText(find.byType(TextField), 'BTS RM');
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('성운 생성'));
|
||||
await tester.pumpAndSettle();
|
||||
@@ -131,13 +131,13 @@ void main() {
|
||||
testWidgets('변경을 누르면 fn-nebula-create 로 만들고 새 성운 ID 를 들고 닫힌다', (tester) async {
|
||||
final repo = _CreateRepo();
|
||||
final results = await _pushed(tester, NebulaCreateScreen(repository: repo));
|
||||
await tester.enterText(find.byType(TextField), 'BTS_RM');
|
||||
await tester.enterText(find.byType(TextField), 'BTS RM');
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('성운 생성'));
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('변경'));
|
||||
await tester.pumpAndSettle();
|
||||
expect(repo.calls, ['BTS_RM']);
|
||||
expect(repo.calls, ['BTS RM']);
|
||||
expect(results, ['new-nebula']);
|
||||
expect(find.byType(NebulaCreateScreen), findsNothing);
|
||||
});
|
||||
@@ -147,7 +147,7 @@ void main() {
|
||||
error: const BackendException('E-FDM-02', '이미 오늘 성운을 생성하셨습니다.'),
|
||||
);
|
||||
final results = await _pushed(tester, NebulaCreateScreen(repository: repo));
|
||||
await tester.enterText(find.byType(TextField), 'BTS_RM');
|
||||
await tester.enterText(find.byType(TextField), 'BTS RM');
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('성운 생성'));
|
||||
await tester.pumpAndSettle();
|
||||
@@ -161,7 +161,7 @@ void main() {
|
||||
testWidgets('대표 변경 30일 대기 중이면 성운만 생겼다고 알리고 닫힌다(C-15)', (tester) async {
|
||||
final repo = _CreateRepo(primaryChanged: false);
|
||||
final results = await _pushed(tester, NebulaCreateScreen(repository: repo));
|
||||
await tester.enterText(find.byType(TextField), 'BTS_RM');
|
||||
await tester.enterText(find.byType(TextField), 'BTS RM');
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('성운 생성'));
|
||||
await tester.pumpAndSettle();
|
||||
@@ -180,7 +180,7 @@ void main() {
|
||||
|
||||
testWidgets('오늘 이미 만들었으면 사유를 알리고 진행하지 않는다', (tester) async {
|
||||
await _pump(tester, const NebulaCreateScreen(alreadyCreatedToday: true));
|
||||
await tester.enterText(find.byType(TextField), 'BTS_RM');
|
||||
await tester.enterText(find.byType(TextField), 'BTS RM');
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(find.text('성운 생성'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
Reference in New Issue
Block a user