Issue-ID: VID-724
Signed-off-by: Sara Weiss <sara.weiss@intl.att.com>
Change-Id: I0afa4fe8907c4e03630e15042188b794e4acfcc4
FLAG_2002_VNF_PLATFORM_MULTI_SELECT,
FLAG_2002_VFM_UPGRADE_ADDITIONAL_OPTIONS,
FLAG_2002_IDENTIFY_INVARIANT_MACRO_UUID_BY_BACKEND,
FLAG_2002_VNF_PLATFORM_MULTI_SELECT,
FLAG_2002_VFM_UPGRADE_ADDITIONAL_OPTIONS,
FLAG_2002_IDENTIFY_INVARIANT_MACRO_UUID_BY_BACKEND,
+ FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER,
;
public boolean isActive() {
;
public boolean isActive() {
return wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath("//*[table]//tbody/tr"))).size();
}
return wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.xpath("//*[table]//tbody/tr"))).size();
}
+ public static void verifyUrlMatchInstantiationStatusWithFilterSearchParam(String serviceModelId) {
+
+ Map<String, String> paramsMap = extractQueryParamsFromCurrentURL("instantiationStatus?");
+ assertEquals(paramsMap.get("filterText"), serviceModelId);
+
+ }
+
public static WebElement assertInstantiationStatusRow(String spanIdSelector, Map<String, String> fieldsIdsAndExpected) {
try {
WebElement newTrRow = getInstantiationStatusRow(spanIdSelector);
public static WebElement assertInstantiationStatusRow(String spanIdSelector, Map<String, String> fieldsIdsAndExpected) {
try {
WebElement newTrRow = getInstantiationStatusRow(spanIdSelector);
public void clickProjectSelect() {
GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID);
}
public void clickProjectSelect() {
GeneralUIUtils.clickOnElementByTestId(Constants.OwningEntity.PROJECT_SELECT_TEST_ID);
}
+
+ public void clickPreviousInstantiationButton() {
+ GeneralUIUtils.clickOnElementByTestIdWithoutWait("ShowPreviousInstancesButton");
+ }
+
import static vid.automation.test.infra.Features.FLAG_1908_COLLECTION_RESOURCE_NEW_INSTANTIATION_UI;
import static vid.automation.test.infra.Features.FLAG_2002_ANY_ALACARTE_BESIDES_EXCLUDED_NEW_INSTANTIATION_UI;
import static vid.automation.test.infra.Features.FLAG_2002_IDENTIFY_INVARIANT_MACRO_UUID_BY_BACKEND;
import static vid.automation.test.infra.Features.FLAG_1908_COLLECTION_RESOURCE_NEW_INSTANTIATION_UI;
import static vid.automation.test.infra.Features.FLAG_2002_ANY_ALACARTE_BESIDES_EXCLUDED_NEW_INSTANTIATION_UI;
import static vid.automation.test.infra.Features.FLAG_2002_IDENTIFY_INVARIANT_MACRO_UUID_BY_BACKEND;
+import static vid.automation.test.infra.Features.FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER;
import static vid.automation.test.infra.Features.FLAG_5G_IN_NEW_INSTANTIATION_UI;
import static vid.automation.test.infra.Features.FLAG_NETWORK_TO_ASYNC_INSTANTIATION;
import static vid.automation.test.infra.Features.FLAG_SHOW_ORCHESTRATION_TYPE;
import static vid.automation.test.infra.Features.FLAG_5G_IN_NEW_INSTANTIATION_UI;
import static vid.automation.test.infra.Features.FLAG_NETWORK_TO_ASYNC_INSTANTIATION;
import static vid.automation.test.infra.Features.FLAG_SHOW_ORCHESTRATION_TYPE;
import vid.automation.test.model.Service;
import vid.automation.test.model.User;
import vid.automation.test.sections.BrowseASDCPage;
import vid.automation.test.model.Service;
import vid.automation.test.model.User;
import vid.automation.test.sections.BrowseASDCPage;
+import vid.automation.test.sections.InstantiationStatusPage;
import vid.automation.test.sections.SideMenu;
import vid.automation.test.sections.ViewEditPage;
import vid.automation.test.sections.deploy.DeployDialogBase;
import vid.automation.test.sections.SideMenu;
import vid.automation.test.sections.ViewEditPage;
import vid.automation.test.sections.deploy.DeployDialogBase;
@Test
private void testCategoryParamsDropdownsExistsInCreationDialog() throws Exception {
@Test
private void testCategoryParamsDropdownsExistsInCreationDialog() throws Exception {
+ String serviceId = "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd";
+
+ DeployModernUIMacroDialog deployMacroDialog = getDeployModernUIMacroDialog(serviceId);
+ deployMacroDialog.assertDialog();
+ deployMacroDialog.clickProjectSelect();
+ deployMacroDialog.clickOwningEntitySelect();
+ }
+
+ private DeployModernUIMacroDialog getDeployModernUIMacroDialog(String serviceId) {
BrowseASDCPage browseASDCPage = registerSimulatorAndGoToBrowseSDC();
BrowseASDCPage browseASDCPage = registerSimulatorAndGoToBrowseSDC();
- Service service = servicesService.getService("2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd");
+ Service service = servicesService.getService(serviceId);
browseASDCPage.clickDeployServiceButtonByServiceUUID(service.uuid);
DeployModernUIMacroDialog deployMacroDialog = new DeployModernUIMacroDialog();
deployMacroDialog.waitForDialogToLoad();
browseASDCPage.clickDeployServiceButtonByServiceUUID(service.uuid);
DeployModernUIMacroDialog deployMacroDialog = new DeployModernUIMacroDialog();
deployMacroDialog.waitForDialogToLoad();
- deployMacroDialog.assertDialog();
- deployMacroDialog.clickProjectSelect();
- deployMacroDialog.clickOwningEntitySelect();
+ return deployMacroDialog;
+ }
+
+ @Test
+ @FeatureTogglingTest(FLAG_2004_TEMP_BUTTON_TO_INSTANTIATION_STATUS_FILTER)
+ private void testClickPreviousInstantiationsInCreationDialog() throws Exception {
+
+ String serviceId = "2f80c596-27e5-4ca9-b5bb-e03a7fd4c0fd";
+ DeployModernUIMacroDialog deployMacroDialog = getDeployModernUIMacroDialog(serviceId);
+ deployMacroDialog.clickPreviousInstantiationButton();
+
+ InstantiationStatusPage.verifyUrlMatchInstantiationStatusWithFilterSearchParam(serviceId);
+
}
private BrowseASDCPage registerSimulatorAndGoToBrowseSDC() {
}
private BrowseASDCPage registerSimulatorAndGoToBrowseSDC() {
it('should filter rows by filter text', function () {
cy.openIframe('app/ui/#/instantiationStatus');
it('should filter rows by filter text', function () {
cy.openIframe('app/ui/#/instantiationStatus');
- cy.getElementByDataTestsId("instantiationStatusFilter").type("ComplexService");
+ cy.getElementByDataTestsId("instantiation-status-filter").type("ComplexService");
cy.get('table#instantiation-status tbody tr').should('have.length', 2);
});
it('should filter rows by url filter text', function () {
cy.openIframe('app/ui/#/instantiationStatus?filterText=ComplexService');
cy.get('table#instantiation-status tbody tr').should('have.length', 2);
});
it('should filter rows by url filter text', function () {
cy.openIframe('app/ui/#/instantiationStatus?filterText=ComplexService');
- cy.getElementByDataTestsId("instantiationStatusFilter").should('have.value','ComplexService');
+ cy.getElementByDataTestsId("instantiation-status-filter").should('have.value','ComplexService');
cy.get('table#instantiation-status tbody tr').should('have.length', 2);
});
cy.get('table#instantiation-status tbody tr').should('have.length', 2);
});
</div>
<div class="instantiationStatusFilter" *ngIf=isInstantiationStatusFilterFlagOn()>
<input
</div>
<div class="instantiationStatusFilter" *ngIf=isInstantiationStatusFilterFlagOn()>
<input
- [attr.data-tests-id]="'instantiationStatusFilter'"
+ [attr.data-tests-id]="'instantiation-status-filter'"
class="form-control input-text"
[placeholder]="'filter'"
[(ngModel)]="filterText">
class="form-control input-text"
[placeholder]="'filter'"
[(ngModel)]="filterText">