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

Introduce core functionality tests #23

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

haydar-metin
Copy link
Contributor

@haydar-metin haydar-metin commented Sep 5, 2024

What it does

Introduces / improves / checks existing test cases for

  • Element Type Hints
  • Element Creation and Deletion
  • Node Change Bounds - Move - Resize
  • Edge Reconnect
  • Edge Routing Points
  • Element Text Editing
  • Undo / Redo

New Assertions:

  • toContainClass - Checks if the element has the css class
  • toContainElement - Checks if the graph contains the element
  • toBeSelected - Checks that the element is selected

How to test

  • yarn
  • yarn test

Follow-ups

VSCode Skipped Tests:

  • Undo / Redo

eclipse-glsp/glsp#1402

Changelog

  • This PR should be mentioned in the changelog

  • This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)

  • PMetadata.assertOwn has been renamed to PMetadata.assert.

@haydar-metin
Copy link
Contributor Author

@tortmayr FYI: the tests are now green 🟢

Copy link
Contributor

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

Code and test looks good to me.
There is a minor linting warning due to duplicated imports: https://github.com/eclipse-glsp/glsp-playwright/actions/runs/10903764106/attempts/1#summary-30258583887
Other than that LGTM!

@tortmayr tortmayr merged commit 18e0f5c into eclipse-glsp:main Sep 19, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants