// Path: src/test/java/org/vaadin/easybinder/example/BuildAndBindExample.java
// public class BuildAndBindExample extends AbstractTest {
// 	private static final long serialVersionUID = 1L;
// 
// 	@Override
// 	public Component getTestComponent() {
// 		AutoBinder<Flight> binder = new AutoBinder<>(Flight.class);
// 		
// 		FormLayout f = new FormLayout();
// 		f.addComponents(binder.buildAndBind("flightId"));
// 		
// 		Label statusLabel = new Label();
// 		binder.setStatusLabel(statusLabel);		
// 		f.addComponents(statusLabel);
// 
// 		binder.setBean(new Flight());
// 
// 		return f;
// 	}
// }


import org.openqa.selenium.support.ui.WebDriverWait;
import org.vaadin.addonhelpers.automated.AbstractWebDriverCase;
import org.vaadin.addonhelpers.automated.VaadinConditions;
import org.vaadin.easybinder.example.BuildAndBindExample;
import org.openqa.selenium.firefox.FirefoxDriver;
package org.vaadin.easybinder.it;

//import org.junit.Test;

/**
 * A simple example that uses Selenium to do a browser level test for a
 * BasicJavaSCriptComponentUsageUI. For more complex tests, consider using page
 * object pattern.
 */
public class FormBuilderIT extends AbstractWebDriverCase {

	//@Test
	public void testJavaScriptComponentWithBrowser() throws InterruptedException {

		startBrowser();

// Path: src/test/java/org/vaadin/easybinder/example/BuildAndBindExample.java
// public class BuildAndBindExample extends AbstractTest {
// 	private static final long serialVersionUID = 1L;
// 
// 	@Override
// 	public Component getTestComponent() {
// 		AutoBinder<Flight> binder = new AutoBinder<>(Flight.class);
// 		
// 		FormLayout f = new FormLayout();
// 		f.addComponents(binder.buildAndBind("flightId"));
// 		
// 		Label statusLabel = new Label();
// 		binder.setStatusLabel(statusLabel);		
// 		f.addComponents(statusLabel);
// 
// 		binder.setBean(new Flight());
// 
// 		return f;
// 	}
// }


// Path: src/test/java/org/vaadin/easybinder/it/FormBuilderIT.java
import org.openqa.selenium.support.ui.WebDriverWait;
import org.vaadin.addonhelpers.automated.AbstractWebDriverCase;
import org.vaadin.addonhelpers.automated.VaadinConditions;
import org.vaadin.easybinder.example.BuildAndBindExample;
import org.openqa.selenium.firefox.FirefoxDriver;

package org.vaadin.easybinder.it;

//import org.junit.Test;

/**
 * A simple example that uses Selenium to do a browser level test for a
 * BasicJavaSCriptComponentUsageUI. For more complex tests, consider using page
 * object pattern.
 */
public class FormBuilderIT extends AbstractWebDriverCase {

	//@Test
	public void testJavaScriptComponentWithBrowser() throws InterruptedException {

		startBrowser();

		driver.navigate().to(BASEURL + BuildAndBindExample.class.getName());