Skip to content

test: improve coverage on portfolio header components#1864

Merged
ItsANameToo merged 3 commits into
feat/mainsailfrom
test/portfolio-wallet-header-tests
May 29, 2026
Merged

test: improve coverage on portfolio header components#1864
ItsANameToo merged 3 commits into
feat/mainsailfrom
test/portfolio-wallet-header-tests

Conversation

@goga-m
Copy link
Copy Markdown
Contributor

@goga-m goga-m commented May 28, 2026

Summary

Part of https://app.clickup.com/t/86e0bj61v
Extracted from #1811

  • No code changes, only test coverage.

Checklist

  • My changes look good in both light AND dark mode
  • The change is not hardcoded to a single network, but has multi-asset in mind
  • I checked my changes for obvious issues, debug statements and commented code
  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arkvault Ready Ready Preview May 29, 2026 8:45am

Request Review

Comment on lines -65 to +71
const handleSendRegistration = (registrationType?: "validatorRegistration" | "usernameRegistration") => {
if (registrationType === "validatorRegistration") {
openPanel(Panel.SendValidatorRegistration);
} else {
openPanel(Panel.SendUsernameRegistration);
}
};

const handleSendContractDeployment = () => {
openPanel(Panel.SendContractDeployment);
};

const handleSendUsernameResignation = () => {
openPanel(Panel.SendUsernameResignation);
};

const handleSendValidatorResignation = () => {
openPanel(Panel.SendValidatorResignation);
};
const {
handleSendRegistration,
handleSendContractDeployment,
handleSendUsernameResignation,
handleSendValidatorResignation,
} = usePortfolioHeaderActions();
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.

@ItsANameToo @shahin-hq this is the only code change, the test in UI can be simply to see if the sidepanels open for the above flows.

@ItsANameToo ItsANameToo merged commit ca7faaf into feat/mainsail May 29, 2026
22 of 23 checks passed
@ItsANameToo ItsANameToo deleted the test/portfolio-wallet-header-tests branch May 29, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants