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

test(suite-native): Import an already imported XPUB #12518

Closed
wants to merge 1 commit into from

Conversation

bosomt
Copy link
Contributor

@bosomt bosomt commented May 22, 2024

@bosomt bosomt requested a review from a team as a code owner May 22, 2024 11:33
@bosomt bosomt added the e2e End-to-end tests builded in CI label May 22, 2024
@matejkriz matejkriz added the mobile Suite Lite issues and PRs label May 27, 2024
@@ -23,6 +23,19 @@ class AccountImportActions {
await scrollUntilVisible(by.text(accountName));
}

async importSameAccount({
Copy link
Contributor

Choose a reason for hiding this comment

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

this method is unnecessary, pls use importAccount for this test's purposes.

}) {
await this.selectCoin({ networkSymbol });
await this.submitXpub({ xpub, isValid: true });
await detoxExpect(element(by.text('Coin already synced'))).toBeVisible();
Copy link
Contributor

Choose a reason for hiding this comment

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

While onging expects are fine inside a page action method (eg if you want to assert/wait for something during the test), this is the final assert of the test which should always be in the IT part of the test, not iside the logic

Copy link
Contributor

@Nodonisko Nodonisko left a comment

Choose a reason for hiding this comment

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

I think we have this scenarion already covered in suite-native/app/e2e/tests/invalidAccountsImport.test.ts

@bosomt
Copy link
Contributor Author

bosomt commented May 27, 2024

@Nodonisko you are right, i have not noticed it.
@ondracja closing as duplicity

@bosomt bosomt closed this May 27, 2024
@bosomt bosomt deleted the test/doubleImport branch June 17, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e End-to-end tests builded in CI mobile Suite Lite issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants