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

Adding users -> roles tests automation #373

Merged
merged 20 commits into from
Nov 16, 2024

Conversation

pranavgoel29
Copy link
Contributor

@pranavgoel29 pranavgoel29 commented Nov 13, 2024

  • Added helper functions for roles section tests.
  • Configured tsconfig.json for the tests folder linting.
  • Improved the overall code to use proper TS literals.

Cases covered in this PR.

Verify Page Title

  • Confirm that the page title matches "Parseable | Users."

Roles Table

  • Check that a "Roles" heading is present on the page.
  • Verify that a table is visible with columns for "Role" and "Access."
  • Ensure that the roles table has rows with content.

Create Role Button

  • Check that the "Create Role" button is visible.

Create Role Modal

  • Confirm that clicking the "Create Role" button opens the "Create Role" modal.
  • Create Role Modal Elements:
    • Check for presence of required fields, such as a role name input, privilege dropdown, "Create" button (disabled initially), and "Cancel" button.
    • Verify that clicking "Cancel" closes the modal.
  • Create a New Role:
    • Ensure any existing "playwright-test-role" is deleted before testing.
    • Create a new role, wait for it to appear in the table, and confirm its "admin" access level.
  • Delete a Newly Created Role:
    • Delete the newly created "playwright-test-role" and verify its removal from the table.

Set Default OIDC Role Button

  • Confirm that the "Set Default OIDC Role" button is visible.

Navigate to Documentation

  • Verify that the "Docs" button is visible.
  • Confirm that clicking the "Docs" button opens a new page with the correct heading, "Role Based Access Control."

@pranavgoel29 pranavgoel29 marked this pull request as draft November 13, 2024 14:25
@pranavgoel29 pranavgoel29 marked this pull request as ready for review November 14, 2024 20:34
@pranavgoel29 pranavgoel29 changed the title Adding users -> roles tests Adding users -> roles tests automation Nov 14, 2024
@nitisht nitisht requested a review from praveen5959 November 15, 2024 14:09
Copy link
Contributor

@praveen5959 praveen5959 left a comment

Choose a reason for hiding this comment

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

looks good

@nitisht nitisht merged commit 7297616 into parseablehq:main Nov 16, 2024
3 of 4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants