mil.dod.th.ose.gui.integration/src/mil/dod/th/ose/gui/integration/webapp/advanced/TestSystemBundleConfiguration.java
@Test
    public void testInformationDialog() throws InterruptedException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 20);
        
        //Uses the bundle search bar feature to find the specified bundle.
        BundleManagerUtil.clearBundleFilter(m_Driver);
        WebElement bundleRow = BundleManagerUtil.filterBundles(m_Driver, m_ExampleMetaTypeBundle, true);
        
        WebElement infoButton = bundleRow.findElement(By.cssSelector("button[id*='info']"));
        assertThat(infoButton.isDisplayed(), is(true));
        infoButton.click();
        
        //Verify that the information dialog is displayed after the bundle info button is clicked.
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("div[id*='bundleDialog']")));
        WebElement infoDialog = m_Driver.findElement(By.cssSelector("div[id*='bundleDialog']"));
        assertThat(infoDialog.isDisplayed(), is(true));
        
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("span[id*='bundleInfo']")));
        WebElement infoSpan = infoDialog.findElement(By.cssSelector("span[id*='bundleInfo']"));
        assertThat(infoSpan.isDisplayed(), is(true));
        
        //Make sure that the appropriate bundle name is displayed in the information dialog.
        WebElement infoBundleName = infoSpan.findElement(By.tagName("span"));
        assertThat(infoBundleName.getText(), is("Example MetaType Bundle "
                + "(mil.dod.th.ose.integration.example.metatype)"));
        
        WebElement closeDialog = infoDialog.findElement(By.cssSelector("span[class='ui-icon ui-icon-closethick']"));
        assertThat(closeDialog.isDisplayed(), is(true));
        closeDialog.click();
        
        //Verify that the bundle information dialog closed appropriately.
        assertThat(infoDialog.isDisplayed(), is(false));
    }
/**
     * Test the bundle information dialog.
     * Verify that the information dialog displays the appropriate information.
     */
Test the bundle information dialog.
Verify that the information dialog displays the appropriate information.
Test the bundle information dialog . Verify that the information dialog displays the appropriate information .
@Test
    public void testInformationDialog() throws InterruptedException
    {
        WebDriverWait wait = new WebDriverWait(m_Driver, 20);
        BundleManagerUtil.clearBundleFilter(m_Driver);
        WebElement bundleRow = BundleManagerUtil.filterBundles(m_Driver, m_ExampleMetaTypeBundle, true);
        WebElement infoButton = bundleRow.findElement(By.cssSelector("button[id*='info']"));
        assertThat(infoButton.isDisplayed(), is(true));
        infoButton.click();
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("div[id*='bundleDialog']")));
        WebElement infoDialog = m_Driver.findElement(By.cssSelector("div[id*='bundleDialog']"));
        assertThat(infoDialog.isDisplayed(), is(true));
        wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("span[id*='bundleInfo']")));
        WebElement infoSpan = infoDialog.findElement(By.cssSelector("span[id*='bundleInfo']"));
        assertThat(infoSpan.isDisplayed(), is(true));
        WebElement infoBundleName = infoSpan.findElement(By.tagName("span"));
        assertThat(infoBundleName.getText(), is("Example MetaType Bundle "
                + "(mil.dod.th.ose.integration.example.metatype)"));
        WebElement closeDialog = infoDialog.findElement(By.cssSelector("span[class='ui-icon ui-icon-closethick']"));
        assertThat(closeDialog.isDisplayed(), is(true));
        closeDialog.click();
        assertThat(infoDialog.isDisplayed(), is(false));
    }
@ Test public void testInformationDialog ( ) throws InterruptedException { WebDriverWait wait = new WebDriverWait ( m_Driver , 20 ) ; BundleManagerUtil . clearBundleFilter ( m_Driver ) ; WebElement bundleRow = BundleManagerUtil . filterBundles ( m_Driver , m_ExampleMetaTypeBundle , true ) ; WebElement infoButton = bundleRow . findElement ( By . cssSelector ( "button[id*='info']" ) ) ; assertThat ( infoButton . isDisplayed ( ) , is ( true ) ) ; infoButton . click ( ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "div[id*='bundleDialog']" ) ) ) ; WebElement infoDialog = m_Driver . findElement ( By . cssSelector ( "div[id*='bundleDialog']" ) ) ; assertThat ( infoDialog . isDisplayed ( ) , is ( true ) ) ; wait . until ( ExpectedConditions . visibilityOfElementLocated ( By . cssSelector ( "span[id*='bundleInfo']" ) ) ) ; WebElement infoSpan = infoDialog . findElement ( By . cssSelector ( "span[id*='bundleInfo']" ) ) ; assertThat ( infoSpan . isDisplayed ( ) , is ( true ) ) ; WebElement infoBundleName = infoSpan . findElement ( By . tagName ( "span" ) ) ; assertThat ( infoBundleName . getText ( ) , is ( "Example MetaType Bundle " + "(mil.dod.th.ose.integration.example.metatype)" ) ) ; WebElement closeDialog = infoDialog . findElement ( By . cssSelector ( "span[class='ui-icon ui-icon-closethick']" ) ) ; assertThat ( closeDialog . isDisplayed ( ) , is ( true ) ) ; closeDialog . click ( ) ; assertThat ( infoDialog . isDisplayed ( ) , is ( false ) ) ; }
Test the bundle information dialog.
Test the bundle information dialog .
//Uses the bundle search bar feature to find the specified bundle. //Verify that the information dialog is displayed after the bundle info button is clicked. //Make sure that the appropriate bundle name is displayed in the information dialog. //Verify that the bundle information dialog closed appropriately.