Skip to content

web: add tests for user profile page render and 404 flow #16

Closed

Description

@ShantKhatri

Summary

Add tests in apps/web to verify profile page renders profile data and handles missing users.

Tasks

  • use @testing-library/svelte to create apps/web/src/routes/u/[username]/+page.test.ts.
  • mock the loader data to include a profile and assert name/avatar rendered.
  • mock loader error to assert 'User Not Found' message appears.

Acceptance Criteria

  • tests can run with pnpm --filter @devcard/web test (or app-specific command).
  • this makes web path robust for newcomers.

Activity

  1. shivangii123 commented on May 15, 2026

    @shivangii123

    hi @ShantKhatri
    I would like to work on this issue
    Can you assign this to me if available?
    I will start working on it right now.

  2. ShantKhatri commented on May 16, 2026

    @ShantKhatri
    CollaboratorAuthor

    hi @ShantKhatri I would like to work on this issue Can you assign this to me if available? I will start working on it right now.

    Warm welcome. Assigning.

  3. shivangii123 commented on May 17, 2026

    @shivangii123

    HI @ShantKhatri
    Thanks for assiging me this
    I will submit PR asap !

  4. shivangii123 commented on May 28, 2026

    @shivangii123

    Hi @ShantKhatri
    can you please add gssoc'26 tag on this issue
    so that it would be succesfully added to my Contribution in gssoc'26 .

    thanks

  5. github-actions commented on May 29, 2026

    @github-actions
    Contributor

    Hey @ShantKhatri (Project Admin) and @Harxhit (Maintainer),

    This issue (previously assigned to @shivangii123) has been automatically unassigned because no linked pull request was found after the scheduled check.

    If work is in progress, please open a PR and link it to this issue to keep the assignment.

  6. moved this from Todo to In progress in DevCardon Jun 3, 2026
  7. moved this from In progress to Todo in DevCardon Jun 3, 2026
  8. Satvik-art-creator commented on Jun 8, 2026

    @Satvik-art-creator
    Contributor

    Hi @ShantKhatri
    As I see this issue is still unassigned, and I have a good experience in web development, and has already done the local setup. Plz assign this issue to me.
    thank you

  9. Harxhit commented on Jun 8, 2026

    @Harxhit
    Collaborator

    @Satvik-art-creator I have assigned this issue to you.

  10. moved this from Todo to In progress in DevCardon Jun 9, 2026
  11. moved this from In progress to Done in DevCardon Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions