BloomTests.Publish.ExportEpubTests.OriginalAcknowledgments_InCreditsPage_InVernacular_IsRemoved C# (CSharp) Method

OriginalAcknowledgments_InCreditsPage_InVernacular_IsRemoved() private method

        public void OriginalAcknowledgments_InCreditsPage_InVernacular_IsRemoved()
        {
            // This test does some real navigation so needs the server to be running.
            using (GetTestServer())
            {
                // We are using real stylesheet info here to determine what should be visible, so the right classes must be carefully applied.
                var book = SetupBookLong("Acknowledgments should only show in national 1.", "en",
                    extraPageClass: " bloom-frontMatter credits",
                    extraContent:
                        @"<div class='bloom-editable' lang='xyz'><label class='bubble'>Book title in {lang} should be removed</label>acknowledgments in vernacular not displayed</div>
                                <div class='bloom-editable' lang='fr'>National 2 should not be displayed</div>
                                <div class='bloom-editable' lang='de'>German should never display in this collection</div>",
                    extraStyleSheet:
                        "<link rel='stylesheet' href='languageDisplay.css' type='text/css'/> <link rel='stylesheet' href='basePage.css' type='text/css'></link><link rel='stylesheet' href='Factory-XMatter/Factory-XMatter.css' type='text/css'></link>",
                    extraEditGroupClasses: "originalAcknowledgments",
                    defaultLanguages: "N1");

                // Set up the visibility classes correctly
                book.UpdateEditableAreasOfElement(book.OurHtmlDom);

                MakeEpub("output", "OriginalAcknowledgments_InCreditsPage_InVernacular_IsRemoved", book);
                CheckBasicsInManifest();
                CheckBasicsInPage();
                //Thread.Sleep(20000);

                //Console.WriteLine(XElement.Parse(_page1Data).ToString());

                var assertThatPage1 = AssertThatXmlIn.String(_page1Data);
                assertThatPage1.HasNoMatchForXpath("//xhtml:div[@lang='xyz']", _ns);
                assertThatPage1.HasAtLeastOneMatchForXpath("//xhtml:div[@lang='en']", _ns);
                assertThatPage1.HasNoMatchForXpath("//xhtml:div[@lang='fr']", _ns);
                assertThatPage1.HasNoMatchForXpath("//xhtml:div[@lang='de']", _ns);
                assertThatPage1.HasNoMatchForXpath("//xhtml:label", _ns); // labels are hidden
                assertThatPage1.HasNoMatchForXpath("//xhtml:div[@class='pageLabel']", _ns);
            }
        }