HubTurbo / addressbook

A small app for training and experimentation
Other
1 stars 3 forks source link

Add GUI tests for sync errors #563

Open damithc opened 8 years ago

damithc commented 8 years ago

as per title

damithc commented 8 years ago

@YijinL this one is for you.

AlexLMeow commented 8 years ago

Utility:

  1. GuiHandle for bottom status bar

GUI elements to check:

  1. bottom status bar
  2. person list
  3. tag list

Tests:

  1. When every object in the mirror file has an updatedAt timestamp before the last sync-down (use LocalDateTime.min()), the sync-down should not change the person or tag list, and the status bar should state no changes on the remote
  2. Test the 3 types of person changes on remote get synced down correctly.
    • model starts with 3 persons: A, B, C
    • remote has 3 persons with timestamps after last sync-down (use 'LocalDateTime.max()'): A (edited), B (deleted), D (new)
    • remote has 1 person with timestamp before last sync-down (use LocalDateTime.min()): C
    • verify person list after sync-down: A is updated accordingly, B is removed, D is added, C has no change.
    • verify status bar informs 3 person changes detected
  3. Test remote changes to tag list get synced down correctly.
    • model starts with tags: A, B, C
    • remote has tags: C, D
    • verify after sync-down tag list should contain C, D
    • verify status bar says 2 tags from remote detected