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

feat: add deploy page e2e tests #448

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

valfaro123
Copy link
Contributor

🔥 Summary

@valfaro123 valfaro123 linked an issue Jul 10, 2023 that may be closed by this pull request
@@ -0,0 +1,10 @@
export const mockDeploy = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please update this to a function that returns this object? We should get in the habit of only assigning variables for mocks this way.

<TransactionGrid gap="2rem">
<DetailDataList gap="2rem">
{!!deploy?.amount && (
<div data-cy="transaction-details-card">
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't mess with any of the existing styling does it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No visible style changes. Only did this for testing purposes. Adding the data-cy id on InfoCardContentWrapper did not work.

Comment on lines +91 to +98
<DetailDataLabel>{t('timestamp')}</DetailDataLabel>
<TransactionDetailData data-testid="readable-time-stamp">
{withSkeletonLoading(
<>
{deploy?.status}
<StatusIconWrapper>{statusIcon}</StatusIconWrapper>
</>,
deploy?.readableTimestamp,
isLoading,
{},
)}
</DeployStatusData>
</TransactionDetailData>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we not care about status on desktop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both screens will get status. One is show on HideOnMobile and the other on HideOnDesktop

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.

Deploy Page Tests
4 participants