Package net.mindengine.galen.specs.reader.page

Examples of net.mindengine.galen.specs.reader.page.PageSpec


   
    @Test
    public void performsValidations_ofComponentSpecs_withFilteredChildSections() throws IOException {
        openDriverForPage("page-for-component-specs.html");

        PageSpec pageSpec = new PageSpecReader(EMPTY_PROPERTIES, new SeleniumBrowser(driver))
                .read(getClass().getResource("/specs/components/spec-for-component-test-main.spec").getFile());

        driver.manage().window().setSize(new Dimension(1000, 800));
       
        SeleniumPage page = new SeleniumPage(driver);
       
        TestValidationListener validationListener = new TestValidationListener();
        List<PageSection> pageSections = pageSpec.getSections();
        assertThat("Filtered sections size should be", pageSections.size(), is(1));
       
        SectionFilter sectionFilter = new SectionFilter(asList("all", "mobile"), asList("nomobile"));
       
        SectionValidation sectionValidation = new SectionValidation(pageSections, new PageValidation(null, page, pageSpec, validationListener, sectionFilter), validationListener);
View Full Code Here

TOP

Related Classes of net.mindengine.galen.specs.reader.page.PageSpec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.