package qaframework.rtv.tests;

import org.testng.Assert;
import org.testng.annotations.Test;



public class SmokeTest extends TestBase {
	//TODO:test jenkins with new maven agent
	@Test
    public void testJenkins(){
        app.getNavigationHelper().openMainPage();
        //TODO:test jenkins with new maven agent
    }
	@Test
	public void authorizationCorrectCredentianal() throws Exception {
		app.getNavigationHelper().openMainPage();
		AccountData account = new AccountData();
		account.username = "test001";
		account.password = "001test";
		app.getAccountHelper().fillLoginForm(app, account);
		app.getNavigationHelper().clickCheckBoxRemember();
		app.getNavigationHelper().clickButtonLogin();
		// driver.findElement(By.cssSelector("button.navbar-toggle")).click();
		// // open list with button Exit
		Assert.assertTrue(app.getNavigationHelper().gettableSheduleFirstRow());
		Assert.assertTrue(app.getNavigationHelper().gettableSheduleFirstRow(),"Table tableShedule is empty.");
		Assert.assertTrue(((app.getNavigationHelper().checkAbonentType("У вас оплачен Расширенный абонемент на 11 месяцев"))),"Wrong abonent type"); 
		app.getNavigationHelper().clickButtonExit();
	}
	
	@Test(testName = "", description = "CheckBox remember user", dependsOnMethods = { "authorizationCorrectCredentianal"})
	public void authorizationWithRememberCheckBox() throws Exception {
		// app.getNavigationHelper().openMainPage();
		app.getNavigationHelper().clickButtonLogin();
		// driver.findElement(By.cssSelector("button.navbar-toggle")).click();
		// // open list with button Exit
		app.getNavigationHelper().clickButtonExit();
	}
	
	@Test
	public void authorizationNonCredentional() throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getAccountHelper().fillLoginForm(app, new AccountData("", ""));
		app.getNavigationHelper().clickButtonLogin();
		Assert.assertTrue(app.getNavigationHelper().checkWarrningMessage());
	}
	// TODO: Write test for checkBox remember

}

@@ -136,193 +136,8 @@
 e %7B%0A
-%09//TODO:test jenkins with new maven agent%0A%09@Test%0A    public void testJenkins()%7B%0A        app.getNavigationHelper().openMainPage();%0A        //TODO:test jenkins with new maven agent%0A    %7D%0A
 %09@Te
@@ -991,24 +991,26 @@
 xit();%0A%09%7D%0A%09%0A
+//
 %09@Test(testN
@@ -1117,16 +1117,18 @@
 anal%22%7D)%0A
+//
 %09public 
@@ -1187,16 +1187,18 @@
 ption %7B%0A
+//
 %09%09// app
@@ -1228,32 +1228,34 @@
 openMainPage();%0A
+//
 %09%09app.getNavigat
@@ -1278,32 +1278,34 @@
 kButtonLogin();%0A
+//
 %09%09// driver.find
@@ -1353,32 +1353,34 @@
 gle%22)).click();%0A
+//
 %09%09// // open lis
@@ -1398,16 +1398,18 @@
 on Exit%0A
+//
 %09%09app.ge
@@ -1443,24 +1443,26 @@
 ttonExit();%0A
+//
 %09%7D%0A%09%0A%09@Test%0A

Set configuration for jenkins