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

Add wait time after selecting a color #936

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

heemin32
Copy link
Contributor

@heemin32 heemin32 commented Oct 25, 2023

Description

After selecting a color from color palette, it takes time for the palette to disappear and it could cause two palette to be visible at the same time which could cause an error like Your subject contained 2 elements.

 Opening Cypress...
[376:1025/064054.202674:ERROR:gpu_init.cc(453)] Passthrough is not supported, GL is swiftshader, ANGLE is 

================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        9.5.4                                                                          │
  │ Browser:        Chromium 112 (headless)                                                        │
  │ Node Version:   v16.14.2 (/usr/share/opensearch/.nvm/versions/node/v16.14.2/bin/node)          │
  │ Specs:          4 found (plugins/custom-import-map-dashboards/add_saved_object.spec.js, plugin │
  │                 s/custom-import-map-dashboards/documentsLayer.spec.js, plugins/custom-import-m │
  │                 ap-dashboards/import_vector_map_tab.spec.js, plugins/custom-import-map-dashboa │
  │                 rds/opensearchMapLayer...)                                                     │
  │ Searched:       cypress/integration/plugins/custom-import-map-dashboards/*.js                  │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  plugins/custom-import-map-dashboards/add_saved_object.spec.js                   (1 of 4)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating


  Add flights dataset saved object
    ✓ check if maps saved object of flights dataset can be found and open (69926ms)


  1 passing (1m)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     1 minute, 12 seconds                                                             │
  │ Spec Ran:     plugins/custom-import-map-dashboards/add_saved_object.spec.js                    │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /docker/cypress/videos/plugins/custom-import-map-dashboards    (6 seconds)
                          /add_saved_object.spec.js.mp4                                             


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  plugins/custom-import-map-dashboards/documentsLayer.spec.js                     (2 of 4)


  Documents layer
    ✓ Add new documents layer with configuration (103402ms)
    ✓ Open saved map with documents layer


  2 passing (2m)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      2                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     1 minute, 50 seconds                                                             │
  │ Spec Ran:     plugins/custom-import-map-dashboards/documentsLayer.spec.js                      │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /docker/cypress/videos/plugins/custom-import-map-dashboards    (9 seconds)
                          /documentsLayer.spec.js.mp4                                               


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  plugins/custom-import-map-dashboards/import_vector_map_tab.spec.js              (3 of 4)


  Verify the presence of import custom map tab in region map plugin
    ✓ checks import custom map tab is present (38751ms)


  1 passing (41s)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     41 seconds                                                                       │
  │ Spec Ran:     plugins/custom-import-map-dashboards/import_vector_map_tab.spec.js               │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /docker/cypress/videos/plugins/custom-import-map-dashboards    (3 seconds)
                          /import_vector_map_tab.spec.js.mp4                                        


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  plugins/custom-import-map-dashboards/opensearchMapLayer.spec.js                 (4 of 4)


  Default OpenSearch base map layer
    ✓ check if default OpenSearch map layer can be open (90807ms)


  1 passing (2m)


  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        true                                                                             │
  │ Duration:     1 minute, 34 seconds                                                             │
  │ Spec Ran:     plugins/custom-import-map-dashboards/opensearchMapLayer.spec.js                  │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


  (Video)

  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /docker/cypress/videos/plugins/custom-import-map-dashboards    (7 seconds)
                          /opensearchMapLayer.spec.js.mp4                                           


================================================================================

  (Run Finished)


       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  plugins/custom-import-map-dashboard      01:12        1        1        -        -        - │
  │    s/add_saved_object.spec.js                                                                  │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  plugins/custom-import-map-dashboard      01:50        2        2        -        -        - │
  │    s/documentsLayer.spec.js                                                                    │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  plugins/custom-import-map-dashboard      00:41        1        1        -        -        - │
  │    s/import_vector_map_tab.spec.js                                                             │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  plugins/custom-import-map-dashboard      01:34        1        1        -        -        - │
  │    s/opensearchMapLayer.spec.js                                                                │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        05:18        5        5        -        -        -  

Issues Resolved

N/A

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Member

@vamshin vamshin left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

Signed-off-by: Heemin Kim <heemin@amazon.com>
@CCongWang
Copy link
Collaborator

There are some issues in workflow unrelated to this PR, tests passed locally, will merge

@CCongWang CCongWang merged commit d97e891 into opensearch-project:main Oct 25, 2023
37 of 39 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-936-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d97e8916090174df8719af81f3d77d546ee4b5b5
# Push it to GitHub
git push --set-upstream origin backport/backport-936-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-936-to-2.x.

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.11 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.11 2.11
# Navigate to the new working tree
cd .worktrees/backport-2.11
# Create a new branch
git switch --create backport/backport-936-to-2.11
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d97e8916090174df8719af81f3d77d546ee4b5b5
# Push it to GitHub
git push --set-upstream origin backport/backport-936-to-2.11
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.11

Then, create a pull request where the base branch is 2.11 and the compare/head branch is backport/backport-936-to-2.11.

heemin32 added a commit to heemin32/opensearch-dashboards-functional-test that referenced this pull request Oct 25, 2023
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit d97e891)
heemin32 added a commit to heemin32/opensearch-dashboards-functional-test that referenced this pull request Oct 25, 2023
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit d97e891)
heemin32 added a commit to heemin32/opensearch-dashboards-functional-test that referenced this pull request Oct 25, 2023
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit d97e891)
heemin32 added a commit to heemin32/opensearch-dashboards-functional-test that referenced this pull request Oct 25, 2023
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit d97e891)
heemin32 added a commit to heemin32/opensearch-dashboards-functional-test that referenced this pull request Oct 25, 2023
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit d97e891)
CCongWang pushed a commit that referenced this pull request Oct 25, 2023
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit d97e891)
CCongWang pushed a commit that referenced this pull request Oct 25, 2023
Signed-off-by: Heemin Kim <heemin@amazon.com>
(cherry picked from commit d97e891)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants