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 more UI tests #1040

Open
11 of 25 tasks
LukasKalbertodt opened this issue Dec 20, 2023 · 1 comment
Open
11 of 25 tasks

Add more UI tests #1040

LukasKalbertodt opened this issue Dec 20, 2023 · 1 comment
Labels
kind:tracking-issue Long lived for tracking the progress of a more general topic

Comments

@LukasKalbertodt
Copy link
Member

LukasKalbertodt commented Dec 20, 2023

This issue just collects possible test cases for UI tests.

Test cases

Feel free to just add to this list.

  • Login works: start page, click login button, enter credentials, click login again (or press enter?), make sure user is logged in
    • Forward to previous page works correctly
    • Refreshing login page does NOT forward to previous page
  • Language
    • Language menu exists in header, can be used to change the language
    • Automatic language detection works (no idea how hard this is with UI testing frameworks)
  • Video page
    • Player exists, loads and can be used to play
    • All metadata (for a specific video) exists on the page
    • Other videos of that series are shown below and can be clicked.
    • Share button exists, can be clicked, reveals share menu
  • Realm editing
    • Name can be changed (fixed & derived)
    • Order of subpages can be changed
    • Path can be changed (and all links on the page are updated accordingly without reload!)
    • Page can be deleted
    • Adding sub-page works
      • Check error conditions (empty name, invalid path segment)
      • Newly created realms have admin rights for creator
    • Blocks
      • Text block can be added & edited
      • Title block can be added & edited
      • Video block can be added & edited (and layout options work)
      • Series block can be added & edited (and layout options work)
      • Block can be removed
    • All the above things should also be tested for user pages
  • Adding user page works
  • Search
    • Shortcut "s" works
    • Entering input shows search results
@LukasKalbertodt LukasKalbertodt added the kind:tracking-issue Long lived for tracking the progress of a more general topic label Dec 20, 2023
@owi92
Copy link
Member

owi92 commented Dec 20, 2023

I wrote extensive tests for realm editing (including user pages) that would tick all the boxes, but these are still flaky. I tried multiple times to fix this, but couldn't get it working reliably. There appears to be an issue where the api/db access is sometimes too slow, making these fail. And while there are mechanisms in playwright that should in theory help with this, none of them seemed to help. This is really bugging me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:tracking-issue Long lived for tracking the progress of a more general topic
Projects
None yet
Development

No branches or pull requests

2 participants