Skip to content

Component examples#3

Merged
munderseth merged 2 commits into
mainfrom
component-examples
Jun 3, 2026
Merged

Component examples#3
munderseth merged 2 commits into
mainfrom
component-examples

Conversation

@munderseth

@munderseth munderseth commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Example Testspace components:

  • login
  • newProject
  • delProject

@munderseth munderseth marked this pull request as ready for review June 3, 2026 22:05
Copilot AI review requested due to automatic review settings June 3, 2026 22:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds example Playwright “component” helpers and accompanying check specs for common Testspace flows (login, create project, delete project), plus repository guidance for reliably interacting with Testspace’s AJAX-driven menus/dialogs.

Changes:

  • Added newProject and delProject component implementations for creating/deleting projects.
  • Added component check specs (login, newProject, delProject) that exercise these components end-to-end.
  • Added .github/copilot-instructions.md documenting stable interaction patterns for DETAILS-based row menus and overmind confirmation dialogs.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/components/newproject-component.js New component helper for creating a standalone project via the New Project dialog.
tests/components/login-component.js Updates login component flow and navigation comments; adds an unused import.
tests/components/delproject-component.js New component helper for deleting a project using row menu + confirmation dialog patterns.
tests/components/checks/newproject.spec.js New spec chaining login + create project + teardown delete project.
tests/components/checks/login.spec.js Updates login spec to assert org header text; currently sets PASSWORD to empty string when missing.
tests/components/checks/delproject.spec.js New spec chaining login + create project + delete project and asserting removal.
.github/copilot-instructions.md New repo instructions documenting stable Playwright patterns for menus/dialogs in the AUT.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to 3
const { expect } = require('@playwright/test');

/**
Comment on lines +1 to +3
const { expect } = require('@playwright/test');

/**
* 7. Click on "SUBMIT"
* 8. Submit new project dialog
*/
async function newprojectComponent(page) {
* 5. Click on "YES"
* 6. Submit form
*/
async function delprojectComponent(page) {
@munderseth munderseth merged commit 46bf984 into main Jun 3, 2026
5 checks passed
@munderseth munderseth deleted the component-examples branch June 3, 2026 22:14
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