-
Notifications
You must be signed in to change notification settings - Fork 3
feat: tests for "Latests rewards distribution" section on Dashboard #264
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
base: develop
Are you sure you want to change the base?
Conversation
Preview stand statusPreview stand available on testnet |
import { test } from '@playwright/test'; | ||
import { contractClients } from 'tests/services/clients.contract'; | ||
|
||
export const getReportFrameForLastRewards = async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not store in CSFeeOracleContract
?
.getByText('View on Etherscan') | ||
.click(), | ||
]); | ||
expect(etherscanPage.url()).toContain(`.etherscan.io`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's possible to verify latest tx id to verify full url to compare freshnes of tx'l link
`Expected`, | ||
); | ||
await expect(latestRewardsDistribution.expectedDays).toContainText( | ||
`in ${expectedDays} day`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As i see value able to be "Today". Maybe "Tomorrow. Can be flaky
@@ -93,7 +93,6 @@ | |||
"@nestjs/common": "^10.4.16", | |||
"@next/bundle-analyzer": "^13.2.4", | |||
"@next/eslint-plugin-next": "^13.4.13", | |||
"@playwright/test": "^1.51.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎
@@ -44,7 +44,7 @@ | |||
} | |||
], | |||
"import/no-extraneous-dependencies": [ | |||
"error", | |||
"off", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👎
.getByText('View on Etherscan') | ||
.click(), | ||
]); | ||
expect(etherscanPage.url()).toContain(`.etherscan.io`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dot in the start can fail with the testrun on prod
environment (.etherscan.io
)
Description
✅ What’s new
waitForCallback
to helper (was inBasePage
) — no direct page dependency anymoreRelated Issue
How Has This Been Tested?
Checklist