-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(extension): cleanup staking-related code (#1288)
- Loading branch information
1 parent
29e9e84
commit 2d78c77
Showing
17 changed files
with
166 additions
and
329 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/e2e-tests/src/assert/multidelegation/StakingErrorDrawerAssert.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import StakingErrorDrawer from '../../elements/multidelegation/StakingErrorDrawer'; | ||
import { expect } from 'chai'; | ||
import { t } from '../../utils/translationService'; | ||
|
||
class StakingErrorDrawerAssert { | ||
assertSeeStakingError = async () => { | ||
await StakingErrorDrawer.icon.waitForDisplayed(); | ||
await StakingErrorDrawer.title.waitForDisplayed(); | ||
expect(await StakingErrorDrawer.title.getText()).to.equal(await t('browserView.staking.details.fail.title')); | ||
await StakingErrorDrawer.description.waitForDisplayed(); | ||
expect(await StakingErrorDrawer.description.getText()).to.equal( | ||
await t('browserView.staking.details.fail.description') | ||
); | ||
await StakingErrorDrawer.retryButton.waitForDisplayed(); | ||
expect(await StakingErrorDrawer.retryButton.getText()).to.equal( | ||
await t('browserView.staking.details.fail.btn.retry') | ||
); | ||
await StakingErrorDrawer.closeButton.waitForDisplayed(); | ||
expect(await StakingErrorDrawer.closeButton.getText()).to.equal( | ||
await t('browserView.staking.details.fail.btn.close') | ||
); | ||
}; | ||
} | ||
|
||
export default new StakingErrorDrawerAssert(); |
4 changes: 2 additions & 2 deletions
4
...ests/src/assert/stakingExitModalAssert.ts → ...multidelegation/StakingExitModalAssert.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.