public void MigrateTextOnlyShellPage_CopiesText()
{
SetDom(@"<div class='bloom-page' data-pagelineage='d31c38d8-c1cb-4eb9-951b-d2840f6a8bdb' id='thePage'>
<div class='marginBox'>
<div aria-describedby='qtip-1' data-hasqtip='true' class='bloom-translationGroup bloom-trailingElement normal-style'>
<div aria-describedby='qtip-0' data-hasqtip='true' class='bloom-editable normal-style bloom-content1' contenteditable='true' lang='en'>
There was an old man called Bilanga who was very tall and also not yet married.
</div>
<div data-hasqtip='true' class='bloom-editable normal-style' contenteditable='true' lang='pis'>
Wanfala olman nem blong hem Bilanga barava tol an hem no marit tu.
</div>
<div data-hasqtip='true' class='bloom-editable normal-style' contenteditable='true' lang='xyz'>
Translation into xyz, the primary language.
</div>
<div class='bloom-editable' contenteditable='true' lang='z'></div>
</div>
</div>
</div>
");
var book = CreateBook();
var dom = book.RawDom;
var page = (XmlElement)dom.SafeSelectNodes("//div[@id='thePage']")[0];
book.BringPageUpToDate(page);
var newPage = (XmlElement) dom.SafeSelectNodes("//div[@id='thePage']")[0];
CheckPageIsCustomizable(newPage);
CheckPageLineage(page, newPage, "d31c38d8-c1cb-4eb9-951b-d2840f6a8bdb", "a31c38d8-c1cb-4eb9-951b-d2840f6a8bdb");
CheckEditableText(newPage, "en", "There was an old man called Bilanga who was very tall and also not yet married.");
CheckEditableText(newPage, "pis", "Wanfala olman nem blong hem Bilanga barava tol an hem no marit tu.");
CheckEditableText(newPage, "xyz", "Translation into xyz, the primary language.");
CheckEditableText(newPage, "z", "");
Assert.That(newPage.SafeSelectNodes("//div[@lang='z' and contains(@class,'bloom-editable')]"), Has.Count.EqualTo(1), "Failed to remove old child element");
}