-
Notifications
You must be signed in to change notification settings - Fork 119
Electron app manual testing checklist
Evgeny Kochetkov edited this page Feb 7, 2018
·
1 revision
Because Spectron can't handle dialogs, we have to resort to manually testing some parts of Electron version of our IDE.
Ways to load a new project into IDE:
- just create one(file->new)
- open a built-in project using xod:// url
- file->open
- from recent items(Windows and macOS only)
- by opening from file manager
- when IDE is not launched yet
- while IDE is running
- on Windows it should create a new window, on a mac stuff happens in the same(!) window
While...
- having unsaved changes
- NOT having unsaved changes
Criteria:
- if current project has unsaved changes, user should be prompted to save them
- if he cancels saving process at any(!) point(initial prompt or location selection),
he should return to exactly the same state as before(project, lastSavedProject, projectPath, window title)
- do not add to recent items(?)
- if he cancels saving process at any(!) point(initial prompt or location selection),
he should return to exactly the same state as before(project, lastSavedProject, projectPath, window title)
- if there are no unsaved changes, requested action should just happen without interruptions
-
make some changes
-
for each of "Ways to load a new project...": // "cancel"
- execute it
- make sure that the confirm dialog appeared
- press "cancel"
- make sure that
- the opened project is in the same state
- window title has not changed
// cancel file dialog
- execute it again
- make sure that the confirm dialog appeared(the IDE still knows we have unsaved changes)
- press "save"
- !!! in some cases the file dialog should appear. press "cancel"
- make sure that
- the opened project is in the same state
- window title has not changed
- repeat it to make sure that the IDE still knows we have unsaved changes, press "cancel"
// discard
// save
- make changes to any current project
- press close window button
- make sure that the confirm dialog appeared
- press "cancel"
- make sure window did not close, everything is in place
- make changes to the new project
- press close window button
- make sure that the confirm dialog appeared
- press "save"
- make sure that the file dialog appeared
- press "cancel"
- make sure window did not close, everything is in place
- make changes to the existing opened project
- press close window button
- make sure that the confirm dialog appeared
- press "save"
- make sure that
- window did close
- project is saved
- make changes to the new project
- press close window button
- make sure that the confirm dialog appeared
- press "save"
- make sure that the file dialog appeared
- choose a location and filename and press "save"
- make sure that
- window did close
- project is saved
- make changes to the existing project
- press close window button
- make sure that the confirm dialog appeared
- press "discard"
- make sure that
- window did close
- changes are not saved