Skip to content

Commit cd468fb

Browse files
committed
test(extension): unify assertions
1 parent 222f8d4 commit cd468fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/e2e-tests/src/assert/VotingCenterPageAssert.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ class VotingCenterPageAssert {
77
async assertSeeVotingCenterBanner() {
88
await VotingCenterPage.banner.waitForDisplayed();
99
await VotingCenterPage.title.waitForDisplayed();
10-
expect(await VotingCenterPage.title.getText()).to.be.eq(await t('browserView.voting-beta.modal.title'));
10+
expect(await VotingCenterPage.title.getText()).to.equal(await t('browserView.voting-beta.modal.title'));
1111
await VotingCenterPage.description.waitForDisplayed();
1212
const expectedDescriptionKey = (await isPopupMode())
1313
? 'browserView.voting-beta.modal.description-popup'
1414
: 'browserView.voting-beta.modal.description';
1515
const expectedDescription = (await t(expectedDescriptionKey)).replaceAll('<br /><br />', '\n\n');
16-
expect(await VotingCenterPage.description.getProperty('innerText')).to.be.eq(expectedDescription);
16+
expect(await VotingCenterPage.description.getProperty('innerText')).to.equal(expectedDescription);
1717
await VotingCenterPage.govToolButton.waitForClickable();
18-
expect(await VotingCenterPage.govToolButton.getText()).to.be.eq(await t('browserView.voting-beta.modal.cta'));
18+
expect(await VotingCenterPage.govToolButton.getText()).to.equal(await t('browserView.voting-beta.modal.cta'));
1919
}
2020
}
2121

0 commit comments

Comments
 (0)