Skip to content

issues 739 735 772 run all appium tests, fix changing login lang#771

Merged
tomholub merged 10 commits intomasterfrom
tests/issue-739-and-735
Oct 25, 2021
Merged

issues 739 735 772 run all appium tests, fix changing login lang#771
tomholub merged 10 commits intomasterfrom
tests/issue-739-and-735

Conversation

@fcvakintos
Copy link
Contributor

@fcvakintos fcvakintos commented Oct 25, 2021

#739 - run all tests
#735 - rename method
#772 - failed to change language during login

disabled 2 specs
renamed checkErrorMessage to checkWrongPassPhraseErrorMessage
@tomholub
Copy link
Collaborator

Why is it that tests that restart app don't work - is there something we can do?

@fcvakintos
Copy link
Contributor Author

@tomholub I need to investigate more... strange thing

@fcvakintos
Copy link
Contributor Author

@tomholub bundle is changed?

@tomholub
Copy link
Collaborator

If you mean dependencies, sure - we update them when new versions come.

@tomholub
Copy link
Collaborator

I think retrying tests once when they fail is good, I would not be disabling that retry setting. But we should still investigate individual retries and improve them.

@fcvakintos
Copy link
Contributor Author

If you mean dependencies, sure - we update them when new versions come.

I see bundle id with the new version is com.flowcrypt.as.ios.consumer

@tomholub
Copy link
Collaborator

If you mean dependencies, sure - we update them when new versions come.

I see bundle id with the new version is com.flowcrypt.as.ios.consumer

I see what you mean now. Yes, that was me, but this change was not intentional for CI tests. CI tests are running the Debug FlowCrypt scheme which has a com.flowcrypt.as.ios.debug bundle id - that's the one it's supposed to be using.

@fcvakintos
Copy link
Contributor Author

com.flowcrypt.as.ios.debug

please add to env file on semaphoreci
BUNDLE_ID=com.flowcrypt.as.ios.debug

@fcvakintos
Copy link
Contributor Author

@tomholub let me know when env file updated so I will push all fixes

@tomholub
Copy link
Collaborator

tomholub commented Oct 25, 2021

Interestingly, when I have a look at CI (the regular Swift tests) I see:

 21:03
| prelaunch_simulator                            | 1                                                                                           | 21:03
| reinstall_app                                  | false                                                                                       | 21:03
| app_identifier                                 | com.flowcrypt.ios.testflight                                                                | 21:03
| clean                                          | false                                                                                       | 21:03
| open_report                                    | false                        

That would explain why we had to build twice. But now I'm not entirely sure which bundle id is it running for appium. I'll take a closer look.

@tomholub
Copy link
Collaborator

I've merged master - npm commands were renamed

@tomholub
Copy link
Collaborator

instead of ios. it's now only.test. to make it clear it's not building the app, unlike just test which builds it too (npm convention)

@fcvakintos
Copy link
Contributor Author

@tomholub did you update ENV file to include bundle id for tests?

BUNDLE_ID=com.flowcrypt.as.ios.debug

add this to env file on semaphore ci

@fcvakintos
Copy link
Contributor Author

or can I upload myself?

@fcvakintos
Copy link
Contributor Author

done

@tomholub
Copy link
Collaborator

@tomholub did you update ENV file to include bundle id for tests?

BUNDLE_ID=com.flowcrypt.as.ios.debug

add this to env file on semaphore ci

Please wait a bit - I'm cleaning up configurations and bundles, it's a mess. Once done, I'll let you know. I want to make sure it's all orderly. May take an hour or two (before I push / check tests still work / merge it). Then I'll add the updated .env file.

@fcvakintos
Copy link
Contributor Author

@tomholub pull latest changes, I have all green. But make sure you have correct bundle_id in env file

Comment on lines 27 to 30
clickMenuIcon () {
this.menuIcon.waitForDisplayed();
this.menuIcon.click();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

On browser extension (puppeteer) I use methods like waitAndClick and waitAndType and waitAndRead and so on. Generally, for every element that you interact with, you have to wait until it's there (and anyway it doesn't hurt to make sure first) so I recommend to use such methods (nearly) everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, let's make separate task for this to add ActionHelper file

tomholub
tomholub previously approved these changes Oct 25, 2021
Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

Approve if it can pass tests. But so far it's running into #769 a lot.

@fcvakintos
Copy link
Contributor Author

@tomholub I added ENV file with specific bundle id but it could be another bundle id and tests will fail. Ah I uploaded wrong file

@tomholub tomholub changed the title fixes for email screen,splash screen(added wait for element displayed) issues 739 735 722 run all appium tests, fix changing language during login Oct 25, 2021
@tomholub tomholub changed the title issues 739 735 722 run all appium tests, fix changing language during login issues 739 735 722 run all appium tests, fix changing login lang Oct 25, 2021
@tomholub
Copy link
Collaborator

I'll update the env file from here

@tomholub
Copy link
Collaborator

updated, re-running. Let's see. Locally they run well now.

Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

Thanks!

@tomholub tomholub merged commit 2b120f9 into master Oct 25, 2021
@tomholub tomholub deleted the tests/issue-739-and-735 branch October 25, 2021 17:12
@tomholub tomholub changed the title issues 739 735 722 run all appium tests, fix changing login lang issues 739 735 772 run all appium tests, fix changing login lang Oct 25, 2021
@fcvakintos
Copy link
Contributor Author

@tomholub great progress so far =) job finished w/o any fails even w/o rerun

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.

4 participants