Add disabled test for adding a folder, currently failing

This commit is contained in:
Lucien Greathouse
2019-10-16 17:54:10 -07:00
parent a77495c562
commit 64fd2f9cf8
2 changed files with 32 additions and 0 deletions

View File

@@ -69,3 +69,35 @@ fn just_txt() {
// TODO: Directly served files currently don't trigger changed events!
});
}
// TODO: Rojo doesn't currently handle files/folders being added.
#[test]
#[ignore]
fn add_folder() {
run_serve_test("add_folder", |session, mut redactions| {
let info = session.get_api_rojo().unwrap();
let root_id = info.root_instance_id;
assert_yaml_snapshot!("add_folder_info", redactions.redacted_yaml(info));
let read_response = session.get_api_read(root_id).unwrap();
assert_yaml_snapshot!(
"add_folder_all",
read_response.intern_and_redact(&mut redactions, root_id)
);
fs::create_dir(session.path().join("my-new-folder")).unwrap();
let subscribe_response = session.get_api_subscribe(0).unwrap();
assert_yaml_snapshot!(
"add_folder_subscribe",
redactions.redacted_yaml(subscribe_response)
);
let read_response = session.get_api_read(root_id).unwrap();
assert_yaml_snapshot!(
"add_folder_all-2",
read_response.intern_and_redact(&mut redactions, root_id)
);
});
}