Skip to content

feat(gen2-migration): add frontend test scripts in project-boards app#14462

Closed
sanjanaravikumar-az wants to merge 6 commits intogen2-migrationfrom
sanjrkmr/project-boards-test-script
Closed

feat(gen2-migration): add frontend test scripts in project-boards app#14462
sanjanaravikumar-az wants to merge 6 commits intogen2-migrationfrom
sanjrkmr/project-boards-test-script

Conversation

@sanjanaravikumar-az
Copy link
Copy Markdown
Contributor

This script provides frontend-backend testing for the project-boards app's Amplify backend.

What it tests:

  • Public GraphQL queries (getRandomQuote, listProjects, listTodos, getProject, getTodo)
  • Authenticated GraphQL mutations (CRUD operations for Projects and Todos)
  • S3 storage operations (upload, download, getUrl, getProperties)

How it works:

  1. Runs public queries first without authentication
  2. Authenticates via Cognito user pool
  3. Performs full CRUD cycle on Projects and Todos (create → update → delete)
  4. Tests S3 storage by uploading an image, retrieving its URL/properties, downloading it, and linking it to a Todo
  5. Cleans up test data and signs out

Users need to update TEST_USER credentials before running authenticated tests.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sanjanaravikumar-az sanjanaravikumar-az requested a review from a team as a code owner January 12, 2026 21:19
Comment thread amplify-migration-apps/project-boards/gen1-test-script.ts Fixed
Comment thread amplify-migration-apps/project-boards/gen2-test-script.ts Fixed
@sanjanaravikumar-az sanjanaravikumar-az changed the title feat: add frontend test scripts in project-boards app feat(gen2-migration): add frontend test scripts in project-boards app Jan 14, 2026
@sanjanaravikumar-az sanjanaravikumar-az marked this pull request as draft January 15, 2026 16:58
@sanjanaravikumar-az sanjanaravikumar-az marked this pull request as ready for review January 20, 2026 16:28
@9pace 9pace self-requested a review January 22, 2026 16:34
@sanjanaravikumar-az sanjanaravikumar-az marked this pull request as draft February 9, 2026 22:51
* Generates a unique username in the format: ci-test-{timestamp}-{random4hex}
* The timestamp provides ordering/debugging info, the random hex avoids collisions.
*/
function generateUsername(): string {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are we going to move towards this form of credential generation (as opposed to the manual insertion of credentials done before?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, considering this test would be run automatically as a part of the github actions workflow whenever a PR is pushed, we want the authentication to be automated for this and all of the test scripts. I've currently made the change for this script, and will be implementing the same for the rest of the scripts as well

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.

3 participants