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

Setup PlayWright tests #38

Merged
merged 21 commits into from
Nov 24, 2023
Merged

Setup PlayWright tests #38

merged 21 commits into from
Nov 24, 2023

Conversation

harmen-xb
Copy link
Contributor

@harmen-xb harmen-xb commented Nov 22, 2023

  • Setup PlayWright test package (e2e-tests).
  • Implemented CrossModel page object model (including some generic Theia ones which might be migrated to Theia in the future).
  • Created 3 spec files to test basic CrossModel functionalities (to be extended in future).
  • Setup execution of PlayWright and reporting in GitHub Workflow.
  • Updated devcontainer configuration so PlayWright can be debugged from Windows machine (using WSL + Docker).

…dingly.

Added allure reporting for ci runs and added dependencies.
Reverted back to using pages actions and added environment setting.
…object.

Created scenarios for tab bar toolbar actions (entity, relationship & diagram).
Moved tabbar-toolbar tests into own spec file.
Added getting focus on explorer for each test in toolbar tests.
@harmen-xb harmen-xb self-assigned this Nov 22, 2023
Copy link

github-actions bot commented Nov 22, 2023

Unit Test Results

    3 files    30 suites   1m 32s ⏱️
  68 tests   68 ✔️ 0 💤 0
207 runs  207 ✔️ 0 💤 0

Results for commit cfbb5ac.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

Fantastic contribution! For me locally everything works as expected and the initial CI ran with this PR also looks good. For the reporting, we need to merge to master I believe but I didn't see any obvious problems so far. I especially like the custom page objects, great work!

I do have some minor comments but they are mostly related to style.

.github/workflows/build-and-test.yml Show resolved Hide resolved
.github/workflows/build-and-test.yml Outdated Show resolved Hide resolved
.github/workflows/build-and-test.yml Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
e2e-tests/src/page-objects/crossmodel-explorer-view.ts Outdated Show resolved Hide resolved
e2e-tests/src/page-objects/theia-single-input-dialog.ts Outdated Show resolved Hide resolved
e2e-tests/src/tests/xmodel-app.spec.ts Outdated Show resolved Hide resolved
Changed use of type in the input dialog to fill (because of deprecation warning).
Renamed xmodel files to crossmodel.
Added instlal-playwright yarn script for e2e-tests package.
Added ui-test yarn script for workspace package json.
Updated  gitflow workflows to use adjusted yarn scripts.
Copy link
Collaborator

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

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

Great, thank you very much for addressing all the things so quickly! As soon as the CI is through, we can merge this.

@martin-fleck-at martin-fleck-at merged commit b94137d into main Nov 24, 2023
5 checks passed
@harmen-xb harmen-xb deleted the feature/playwright-tests branch November 24, 2023 11:48
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