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

test: Verify Payment Operations test cases #6203

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shreyT19
Copy link

@shreyT19 shreyT19 commented Oct 2, 2024

This commit adds a new test case for the Payment Operations page. The test verifies the presence of default elements on the page, such as the search box, time range dropdown, filter options, and buttons. The test ensures that the page is functioning correctly and displays the expected elements.

Refactor commands.js

This commit refactors the commands.js file by adding new custom commands. The new commands include getByTestId, clickOnElementWithText, and navigateFromSideMenu. These commands enhance the readability and reusability of the test code by providing convenient shortcuts for common actions.

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

resolves #6133

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

This commit adds a new test case for the Payment Operations page. The test verifies the presence of default elements on the page, such as the search box, time range dropdown, filter options, and buttons. The test ensures that the page is functioning correctly and displays the expected elements.

Refactor commands.js

This commit refactors the commands.js file by adding new custom commands. The new commands include getByTestId, clickOnElementWithText, and navigateFromSideMenu. These commands enhance the readability and reusability of the test code by providing convenient shortcuts for common actions.
Copy link

semanticdiff-com bot commented Oct 2, 2024

Review changes with SemanticDiff.

Analyzed 2 of 2 files.

Filename Status
✔️ cypress-tests/cypress/support/commands.js Analyzed
✔️ cypress-tests/cypress/e2e/PaymentTest/00022-PaymentOperations.cy.js Analyzed

@gorakhnathy7
Copy link
Collaborator

Hey @shreyT19 Kindly link the issue to PR

@shreyT19
Copy link
Author

shreyT19 commented Oct 3, 2024

Hey @gorakhnathy7 Can you please guide me on how to link a pull request to an issue? I am unable to find the option for some reason. It used to be the development option on the right but there seems to be no option there

@pixincreate
Copy link
Member

you can update the description by putting closes #<issue_number>

@shreyT19 shreyT19 changed the title 🧪(test): Verify Payment Operations test cases test: Verify Payment Operations test cases Oct 4, 2024
@shreyT19
Copy link
Author

shreyT19 commented Oct 4, 2024

Also i am getting error while trying to run cypress in headless mode : CypressError:cy.request()must be provided a fully qualifiedurl- one that begins withhttp. By default cy.request()will use either the current window's origin or thebaseUrlincypress.config.js. Neither of those values were present.

@pixincreate
Copy link
Member

Hey @shreyT19, I do not think the PR is in right place. Control center is where you need to raise the PR instead given the parent issue is in that repository.

Cypress in control center does not a README of its own at the moment, you can refer to the README of either Cypress v1 or Cypress v2 for detailed guide.

CC: @JeevaRamu0104 @prajwalnl0

@shreyT19
Copy link
Author

shreyT19 commented Oct 4, 2024

Hey, thanks for pointing out! I'll make a PR in the control center repo.

@gorakhnathy7 gorakhnathy7 added the hacktoberfest Issues that are up for grabs for Hacktoberfest participants label Oct 16, 2024
@gorakhnathy7 gorakhnathy7 removed the hacktoberfest Issues that are up for grabs for Hacktoberfest participants label Oct 23, 2024
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.

[CYPRESS]: Verify "Payment operations" page.
3 participants