package pt.fccn.sobre.arquivo.tests;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.io.FileNotFoundException;
import java.io.IOException;

import org.junit.Test;

import pt.fccn.saw.selenium.Retry;
import pt.fccn.saw.selenium.WebDriverTestBaseParalell;
import pt.fccn.sobre.arquivo.pages.CommonQuestionsPage;
import pt.fccn.sobre.arquivo.pages.ExamplesPage;
import pt.fccn.sobre.arquivo.pages.IndexSobrePage;

public class ExamplesTest extends WebDriverTestBaseParalell {

	public ExamplesTest(String os, String version, String browser, String deviceName, String deviceOrientation) {
		super( os, version, browser, deviceName, deviceOrientation );
	}
	
	@Test
	@Retry
	public void examplesTest( )  {
		System.out.print( "Running examples Test. \n");
		IndexSobrePage index = null;
		try{
			 index = new IndexSobrePage( driver );
		} catch( IOException e ) {
			fail("IOException -> IndexSobrePage");
		}
		
        System.out.println( "Going to the ExamplePage" );
        
        ExamplesPage examplePage = index.goToExamplePage( );
        assertTrue("Failed The Example Page Test in Portuguese", examplePage.checkLinksExamples( "PT" ) );
        
        //TODO english version missing
	   
    }

}

@@ -1195,52 +1195,254 @@
     
-%0A        //TODO english version missing%0A%09   
+System.out.println( %22Success The Example Page Test in Portuguese%22 );%0A        assertTrue(%22Failed The Example Page Test in English%22, examplePage.checkLinksExamples( %22EN%22 ) );%0A        System.out.println( %22Success The Example Page Test in English%22 );
 %0A   

Add english version in ExamplesTest