Make note save status transient
This commit is contained in:
@@ -18,6 +18,15 @@ func _run() -> void:
|
||||
_assert(editor.editor != null, "notes editor should create a text editor")
|
||||
_assert(editor.editor.wrap_mode == TextEdit.LINE_WRAPPING_BOUNDARY, "notes should wrap plain text")
|
||||
_assert(NavigationRoutes.key_for_screen("notes") == "notes", "notes should have a navigation route")
|
||||
var notes_service = root.get_node("NotesService")
|
||||
var prior_state: String = notes_service.state
|
||||
notes_service.state = "offline"
|
||||
_assert(notes_service.status_text().is_empty(), "offline note retries should not leave a persistent status message")
|
||||
editor._on_save_succeeded()
|
||||
_assert(editor.status_label.text == "Saved", "successful remote saves should show a Saved confirmation")
|
||||
editor._clear_saved_status()
|
||||
_assert(editor.status_label.text.is_empty(), "the Saved confirmation should clear after its display window")
|
||||
notes_service.state = prior_state
|
||||
|
||||
var dialog := NotesDialog.new()
|
||||
root.add_child(dialog)
|
||||
|
||||
Reference in New Issue
Block a user