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

control center framework steps phase2 #19

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

priyabhatnagar25
Copy link
Collaborator

No description provided.

ElementHelper.isElementDisplayed(CdfControlCenterLocators.pipelineDeletedMessage);
}

public static void clickOnSearchTabControlCenter(String message) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the comments on each action. Please check the existing pipeline actions for reference.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added all the comments

}

/**
* Clicks on the Schema Tab.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to Click

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

}

/**
* Checks for the displayed Schema page.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to Check, remove 's' in all comments

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed in all comments

CdfControlCenterActions.clickOnSearchTagControlCenter(value);
}

@Then("Verify user can see the searched tag successfully on the control center page")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify the searched tag is displayed successfully on control center page

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Priya , We tried looking for the changed line provided by Surya but it is not seen in any of thecdap repo feature files . If it is not changed there then how the scenario will work ?

public void tagCountIncreasesDataset() {
CdfControlCenterActions.tagCountIncreasesDataset(); }

@Then("Click on the close icon of the added tag and verify that the tag count decreases")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click on the close icon of tag added and verify the tag count decreases

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

CdfControlCenterActions.pressEnterKey();
}

@Then("Verify that the tag count of dataset entity increases when the user adds the tag")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify the tag count of dataset entity when user adds the tag

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

public void clickOnAToZOptionMessage() {
CdfControlCenterActions.clickOnAToZOptionMessage(); }

@Then("Click on the plus add button of the dataset entity to add the tags successfully")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click on the plus button to add the tag for a dataset entity

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

public void selectDropdownFilterOptionValue(String pluginProperty, String option) {
CdfControlCenterActions.selectFilterDropdownOption(pluginProperty, option); }

@Then("Verify user is able to see all entities displayed message on the basis of filter selection")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify the all entities message is displayed with the filter selection

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

public void clickBackTabDatasetEntity() {
CdfControlCenterActions.clickOnBackTabDatasetEntity(); }

@Then("Click on the close link of the view details page of dataset entity to close the details page")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click on close link to close the details page of dataset entity

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

public void truncateDatasetEntity() {
CdfControlCenterActions.clickOnTruncateDatasetEntity(); }

@Then("Click on the view details tab of dataset entity page to see the details page of the dataset")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click on view details tab of dataset entity

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

CdfControlCenterActions.deletedDatasetNotPresent(value);
}

@Then("Click on the truncate icon of the dataset entity and the dataset should get truncated successfully")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click truncate and verify the successful truncate of dataset entity

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

CdfControlCenterActions.navigateDetailsPageDatasetEntity();
}

@Then("Click on the delete icon of the dataset entity and the dataset should get deleted successfully")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click delete and verify the dataset is deleted successfully

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

public void clickOnDeleteIconSetPreferences() {
CdfControlCenterActions.clickOnDeleteIconSetPreferences(); }

@Then("Verify user is able to click on the dataset entity icon to see the details page of the dataset")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verify the user is able to click dataset entity icon to navigate to details page

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

CdfControlCenterActions.navigateToControlCenter();
}

@Then("Verify user is able to click on the create button to create a pipeline successfully")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change -- 'Click on create button to create a pipeline'.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

}

@FindBy(how = How.XPATH, using = "//button[@data-cy='save-prefs-btn']")
public static WebElement clickSaveAndCloseButton;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove click and only write saveAndCloseButton

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it wherever there is click for locators

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chamged

public static WebElement clickOnDatasetDeleteIcon;

@FindBy(how = How.XPATH, using = "(//*[@class='icon-svg icon-cut'])[1]")
public static WebElement clickOnTruncateDatasetEntity;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove click from all locators name because click is a action not a element

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

CdfControlCenterActions.clickOnSearchTagControlCenter(value);
}

@Then("Verify user can see the searched tag successfully on the control center page")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to ' Verify if user sees the searched tag succesfully in control center'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed


@Then("Verify user is navigated to the details page of the dataset entity icon successfully")
public void navigateDetailsPageDatasetEntity() {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove space here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed


@Then("Verify the user is able to set the preferences for the created pipeline in the control center page")
public void setPreferencesForPipeline() {
CdfControlCenterActions.clickOnSetPreferencesIcon(); }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use formatting and check wheather } should be added in new line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

public static WebElement clickOnCloseTagIconDatasetEntity;

@FindBy(how = How.XPATH, using = "//i[normalize-space()='No tags found. Click to add a new business tag.']")
public static WebElement tagCounDecreasetIconDatasetEntity;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this name for the locator . we are just seeing a message in this locator , change it to defaultTagCountMessageDataset or something like that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are removing the tag , here so we are writing decreease intially it was one and then removing the added

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the locator name and included the word message

}

public static By clickOnTruncateButton() {
return By.xpath("//button[@class='btn btn-primary'][//button[@data-cy='Truncate']]");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change it to //div//button[@data-cy='Truncate']

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed

public static WebElement createButtonControlCenter;

@FindBy(how = How.XPATH, using = "//span[@class='entity-type'][//span[contains(text(),'Data Pipeline')]]")
public static WebElement dataPipelineControlCenter;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to //span[contains(text(),'Data Pipeline')]

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this we are checking for the added pipeline in the contol center thats why for more clearance i used class also here.

CdfControlCenterActions.selectSortDropdownOptionValue(option);
}

@Then("Verify user is able to see the entities sorted by the newest option")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change - Verify the entities are sorted by the newest option

CdfControlCenterActions.clickOnNewestOptionMessage();
}

@Then("Verify user is able to see the entities sorted by the oldest option")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change - Verify the entities are sorted by the oldest option

CdfControlCenterActions.clickOnOldestOptionMessage();
}

@Then("Verify user is able to see the entities sorted by the Z to A option")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change - Verify the entities are sorted by the Z to A option

CdfControlCenterActions.clickOnZToAOptionMessage();
}

@Then("Verify user is able to see the entities sorted by the A to Z option")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change - Verify the entities are sorted by the A to Z option

@priyabhatnagar25 priyabhatnagar25 force-pushed the e2e_controlcenter_tests_2 branch 2 times, most recently from b9eabdf to 1c08384 Compare November 29, 2023 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants