public void UpdateFieldsAndVariables_OneLabelPreserved_DuplicatesRemovedNotAdded()
{
var dom = new HtmlDom(@"<html ><head></head><body>
<div class='bloom-page titlePage'>
<div id='target' class='bloom-content1' data-book='insideBackCover'>
<label class='bubble'>Some more space to put things</label><label class='bubble'>Some more space to put things</label>Here is the content
</div>
</div>
</body></html>");
var collectionSettings = new CollectionSettings()
{
Language1Iso639Code = "etr"
};
var data = new BookData(dom, collectionSettings, null);
data.SynchronizeDataItemsThroughoutDOM();
XmlElement target = (XmlElement)dom.SelectSingleNodeHonoringDefaultNS("//div[@id='target']");
// It's expected that the surviving label goes at the end.
Assert.That(target.InnerText, Is.EqualTo("Here is the contentSome more space to put things"));
XmlElement label = (XmlElement)target.SelectSingleNodeHonoringDefaultNS("//label");
Assert.That(label.InnerText, Is.EqualTo("Some more space to put things"));
}