Add test to edit/save text directive

[finish #79382294]