Skip to content
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

Use HomePage.go() Instead of HeaderPage.clickOnHomeLink() #524

Merged
merged 3 commits into from
Aug 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 2 additions & 21 deletions ui-tests/src/test/java/org/openmrs/reference/FormTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.openmrs.reference.groups.BuildTests;
Expand All @@ -18,31 +17,20 @@
import org.openmrs.uitestframework.test.TestBase;
import org.openqa.selenium.By;


/**
* Created by nata on 24.06.15.
*/
@Ignore
public class FormTest extends TestBase {

private static String name = "newFormTest1";

private static String description = "description of new form";

private static String version = "1.2";

private HomePage homePage;

private AdministrationPage administrationPage;

private HeaderPage headerPage;

private ManageFormsPage manageForm;

private ManageHtmlFormsPage manageHtmlFormsPage;

private HtmlFormsPage htmlFormsPage;

private ClinicianFacingPatientDashboardPage patientDashboardPage;

@Before
Expand Down Expand Up @@ -72,8 +60,7 @@ private void initiateFormPresence() throws InterruptedException {

@Test
@Category(BuildTests.class)
public void addFormTest() throws Exception {

public void addFormTest() throws Exception {
initiateFormPresence();
manageForm.add();
manageForm.addLabel("Eye Report");
Expand All @@ -87,7 +74,6 @@ public void addFormTest() throws Exception {
@Test
@Category(BuildTests.class)
public void editFormTest() throws Exception {

addFormTest();
homePage.goToManageForm();
manageForm.waitForPage();
Expand All @@ -101,7 +87,6 @@ public void editFormTest() throws Exception {
@Test
@Category(BuildTests.class)
public void deleteFormTest() throws Exception {

addFormTest();
homePage.goToManageForm();
manageForm.waitForPage();
Expand All @@ -111,10 +96,6 @@ public void deleteFormTest() throws Exception {

@After
public void tearDown() throws Exception {
if (headerPage != null) {
headerPage.clickOnHomeIcon();
headerPage.waitForPageToLoad();
headerPage.logOut();
}
homePage.go();
}
}