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

fix(#3247): Add waiting time and add test to smoke tests #3248

Merged
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions ui/cypress/support/utils/datalake/DataLakeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class DataLakeUtils {
widgetType: string,
) {
DataLakeUtils.goToDatalake();
DataLakeUtils.createAndEditDataView(dataViewName);
DataLakeUtils.createAndEditDataView();

DataLakeUtils.selectTimeRange(
new Date(2020, 10, 20, 22, 44),
Expand Down Expand Up @@ -162,7 +162,7 @@ export class DataLakeUtils {

public static createAndEditDataView() {
// Create new data view
cy.dataCy('open-new-data-view').click();
cy.dataCy('open-new-data-view', { timeout: 10000 }).click();
}

public static removeWidget(dataViewName: string) {
Expand Down Expand Up @@ -425,7 +425,7 @@ export class DataLakeUtils {
}

public static openTimeSelectorMenu() {
cy.dataCy('time-selector-menu').click();
cy.dataCy('time-selector-menu', { timeout: 10000 }).click();
}

public static applyCustomTimeSelection() {
Expand Down
5 changes: 3 additions & 2 deletions ui/cypress/tests/datalake/timeRangeSelectors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ describe('Test Time Range Selectors in Data Explorer', () => {
before('Setup Tests', () => {
cy.initStreamPipesTest();
DataLakeUtils.loadDataIntoDataLake('datalake/sample.csv', false);
DataLakeUtils.goToDatalake();
DataLakeUtils.createAndEditDataView();
});

it('Perform Test', () => {
DataLakeUtils.goToDatalake();
DataLakeUtils.createAndEditDataView();

periods.forEach(period => {
cy.log('Testing period: ' + period.selector);
DataLakeUtils.openTimeSelectorMenu();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,17 @@ export class StaticRuntimeResolvableTreeInputComponent
}

ngOnInit(): void {
this.resetStaticPropertyStateAndReload();
// if a node is selected it is assumed the adapter was opened in edit mode
// when that is the case, the browse tree should be reloaded
// if the adapter is created, the reload should only be triggered if all previous configurations are set correctly
if (
this.staticProperty.selectedNodesInternalNames &&
this.staticProperty.selectedNodesInternalNames.length > 0
) {
this.resetStaticPropertyStateAndReload();
} else {
this.resetStaticPropertyState();
}

if (
this.staticProperty.nodes.length === 0 &&
Expand Down
Loading