Skip to content

Commit

Permalink
[2.x] Fix CI failure on maps-dashboards
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <[email protected]>
  • Loading branch information
junqiu-lei committed Jan 11, 2024
1 parent 1c65a7f commit 5b63a4d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 7 deletions.
19 changes: 19 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": { "node": "10" }
}
],
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-syntax-jsx",
"@babel/plugin-transform-modules-commonjs",
["@babel/plugin-transform-runtime", { "regenerator": true }],
"@babel/plugin-transform-class-properties",
"@babel/plugin-transform-object-rest-spread"
]
}
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ module.exports = {
require('@babel/preset-typescript'),
],
plugins: [
require('@babel/plugin-proposal-class-properties'),
require('@babel/plugin-proposal-object-rest-spread'),
require('@babel/plugin-transform-class-properties'),
require('@babel/plugin-transform-object-rest-spread'),
['@babel/plugin-transform-modules-commonjs', { allowTopLevelThis: true }],
[require('@babel/plugin-transform-runtime'), { regenerator: true }],
],
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/documentsLayer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ describe('Documents layer', () => {
cy.get(`button[testSubj="styleTab"]`).click();
cy.contains('Fill color').click();
cy.get(`button[aria-label="Select #E7664C as the color"]`).click();
cy.contains('Border color').click();
cy.wait(1000).contains('Border color').click();
cy.get(`button[aria-label="Select #DA8B45 as the color"]`).click();
cy.get(`button[testSubj="settingsTab"]`).click();
cy.wait(1000).get(`button[testSubj="settingsTab"]`).click();
cy.get('[name="layerName"]').clear().type('Documents layer 1');
cy.get(`button[data-test-subj="updateButton"]`).click();
cy.get('[data-test-subj="layerControlPanel"]').should('contain', 'Documents layer 1');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Object {
Map name guidleines:
<ul>
<li>
Map name prefix must contain 1-250 characters.
Map name prefix must contain 1-250 characters.
</li>
<li>
Map name prefix must start with a-z.
Expand Down Expand Up @@ -385,7 +385,7 @@ Object {
Map name guidleines:
<ul>
<li>
Map name prefix must contain 1-250 characters.
Map name prefix must contain 1-250 characters.
</li>
<li>
Map name prefix must start with a-z.
Expand Down
2 changes: 1 addition & 1 deletion public/components/vector_upload_options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ const VectorUploadOptions = (props: RegionMapOptionsProps) => {
<EuiText size="xs" color="subdued" aria-label="map-name-guidelines-text">
Map name guidleines:
<ul>
<li> Map name prefix must contain 1-250 characters. </li>
<li> Map name prefix must contain 1-250 characters.</li>
<li> Map name prefix must start with a-z.</li>
<li> Valid characters are a-z, 0-9, - and _ .</li>
<li>
Expand Down

0 comments on commit 5b63a4d

Please sign in to comment.