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 playwright tests for gitDiff #13331

Closed
5 tasks
standeren opened this issue Aug 9, 2024 · 3 comments
Closed
5 tasks

Add playwright tests for gitDiff #13331

standeren opened this issue Aug 9, 2024 · 3 comments
Labels
kind/chore quality/testing Tests that are missing, needs to be created or could be improved. status/triage status/wontfix Status: Used when something will not be fixed. Describe why.

Comments

@standeren
Copy link
Contributor

Description

These tests can include these cases f.ex:

  •  Add test for viewing gitDiff after altering an existing file
  • Add test for viewing gitDiff after altering the repo with a new file (new page f.ex)
  • Add test for viewing gitDiff after altering the repo with deleting a file (delete page or data model f.ex)
  •  Add test for viewing gitDiff after adding a file and deleting it - it should not be listed
  •  Add test for viewing gitDiff after adding an image - should see a text saying that a binary file has been added (This one can be added after image-upload is merged)

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response

@standeren standeren added status/draft Status: When you create an issue before you have enough info to properly describe the issue. kind/chore labels Aug 9, 2024
@standeren standeren added quality/testing Tests that are missing, needs to be created or could be improved. and removed status/draft Status: When you create an issue before you have enough info to properly describe the issue. labels Aug 9, 2024
@nkylstad
Copy link
Member

nkylstad commented Aug 14, 2024

Maybe you've already discussed this, but do we need tests this detailed and specific in our e2e-tests? Is this not something we test in unit tests? If we feel we need to include gitDiff in the e2e-tests, then a single scenario as part of editing an app might be enough?
@standeren @framitdavid

@framitdavid
Copy link
Collaborator

Maybe you've already discussed this, but do we need tests this detailed and specific in our e2e-tests? Is this not something we test in unit tests? If we feel we need to include gitDiff in the e2e-tests, then a single scenario as part of editing an app might be enough? @standeren @framitdavid

In my opinion, this test is too detailed for Playwright. The feature in question may not be significant enough to benefits a Playwright test. Since the primary function is just viewing the diff, users can commit or revert if the diff view is broken or not functioning correctly. Therefore, I believe this feature can be adequately tested with unit tests, which should be sufficient.

e2e-tests costs more and runs slowly compared to unit-tests and I think that we should test critical features with Playwright.

@standeren
Copy link
Contributor Author

Should we close this then? 😊

@nkylstad nkylstad closed this as completed Sep 3, 2024
@github-project-automation github-project-automation bot moved this to ✅ Done in Team Studio Sep 3, 2024
@nkylstad nkylstad added the status/wontfix Status: Used when something will not be fixed. Describe why. label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/chore quality/testing Tests that are missing, needs to be created or could be improved. status/triage status/wontfix Status: Used when something will not be fixed. Describe why.
Projects
Archived in project
Development

No branches or pull requests

3 participants