-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui-01] Work with Wheather ui branch #1
base: master
Are you sure you want to change the base?
Conversation
ui-wheatherapi/src/main/java/com/weatherapi/ui/pages/HistoryPage.java
Outdated
Show resolved
Hide resolved
ui-wheatherapi/src/main/java/com/weatherapi/ui/pages/TodayPage.java
Outdated
Show resolved
Hide resolved
ui-wheatherapi/src/main/java/com/weatherapi/ui/pages/TomorrowPage.java
Outdated
Show resolved
Hide resolved
ui-wheatherapi/src/test/java/com/weatherapi/ui/tests/TomorrowWeather.java
Outdated
Show resolved
Hide resolved
You are working with UI part but your PR name called "[ui-01] Work with Wheather api branch" it should be "[ui-01] Work with Wheather ui branch" |
return this; | ||
} | ||
|
||
public HistoryPage checkHistoryPageElements(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add parameter in method public HistoryPage checkHistoryPageElements(){
private final SelenideElement loginPage = $("[href=\"/login.aspx\"]"); | ||
public final String loginButton = "Login"; | ||
|
||
public MainPage open() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove extra space
return new LoginPage(); | ||
} | ||
|
||
public MainPage checkUserLogout(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add parameter in method
return this; | ||
} | ||
|
||
public TomorrowPage checkTomorrowPageElements(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add parametr
private final String MAIN_PAGE = "https://www.weatherapi.com/weather/"; | ||
private final String USER_EMAIL = "[email protected]"; | ||
private final String USER_PASSWORD = "f2H*Jap*M6@7/d_"; | ||
private final String personalAccountText = "Welcome Back\n"; | ||
private final String WRONG_USER_EMAIL = "[email protected]"; | ||
private final String WRONG_USER_PASSWORD = "09876TYUI54321i"; | ||
private final String WARNING_MESSAGE= "Your login attempt was not successful. Please try again."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move all this data in separate class and reuse in tests
private final String USER_EMAIL = "[email protected]"; | ||
private final String USER_PASSWORD = "f2H*Jap*M6@7/d_"; | ||
private final String MAIN_PAGE = "https://www.weatherapi.com/"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move in separate class
import static com.codeborne.selenide.Selenide.open; | ||
|
||
public class TodaysWeatherForecasTest { | ||
private final String MAIN_PAGE = "https://www.weatherapi.com/weather/"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move in separate class
import static com.codeborne.selenide.Selenide.open; | ||
|
||
public class TomorrowWeather { | ||
private final String MAIN_PAGE = "https://www.weatherapi.com/weather/"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move in separate class
public class TomorrowWeather { | ||
private final String MAIN_PAGE = "https://www.weatherapi.com/weather/"; | ||
|
||
@BeforeClass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think about moving this configuration in separate class
<dependency> | ||
<groupId>org.testng</groupId> | ||
<artifactId>testng</artifactId> | ||
<version>7.10.2</version> | ||
<scope>test</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have 2 testng dependencies
<dependency> | ||
<groupId>net.datafaker</groupId> | ||
<artifactId>datafaker</artifactId> | ||
<version>2.4.2</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<version>1.18.36</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testng</groupId> | ||
<artifactId>testng</artifactId> | ||
<version>7.10.2</version> | ||
<scope>compile</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move in global pom
No description provided.