Skip to content

Commit

Permalink
Update data layer source name
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
  • Loading branch information
junqiu-lei committed Feb 23, 2024
1 parent 811e8b0 commit 1507138
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Bug Fixes
### Infrastructure
### Documentation
* Update data layer source name [#588](https://github.com/opensearch-project/dashboards-maps/pull/588)
### Maintenance
### Refactoring
2 changes: 1 addition & 1 deletion cypress/e2e/documentsLayer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Documents layer', () => {
cy.contains('Create map').click();
cy.get("button[data-test-subj='addLayerButton']").click();
cy.contains('Documents').click();
cy.contains('Select data source', { timeout: 60000 }).click({ force: true });
cy.contains('Select index pattern', { timeout: 60000 }).click({ force: true });
cy.contains('opensearch_dashboards_sample_data_flights').click();
cy.contains('Select data field', { timeout: 60000 }).click({ force: true });
cy.contains('DestLocation').click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export const DocumentLayerSource = ({
<EuiFlexGrid columns={1}>
<EuiFlexItem>
<EuiFormRow
label="Data source"
label="Index pattern"
isInvalid={!indexPattern}
error={errorsMap.datasource}
data-test-subj={'indexPatternSelect'}
Expand All @@ -273,7 +273,7 @@ export const DocumentLayerSource = ({
<IndexPatternSelect
savedObjectsClient={savedObjectsClient}
placeholder={i18n.translate('documentLayer.selectDataSourcePlaceholder', {
defaultMessage: 'Select data source',
defaultMessage: 'Select index pattern',
})}
indexPatternId={indexPattern?.id || ''}
onChange={async (newIndexPatternId: any) => {
Expand Down

0 comments on commit 1507138

Please sign in to comment.