Skip to content

Conversation

emmaoke-w
Copy link
Contributor

@emmaoke-w emmaoke-w commented Sep 29, 2025

TaskWPB-20253 [Android/QA]Create critical flow test for sso device backup


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • [X is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

-Implement test to login via sso, create a backup , log out and log in to restore the backup
-Adapt okta API client

Issues

Briefly describe the issue you have solved or implemented with this pull request. If the PR contains multiple issues, use a bullet list.

Causes (Optional)

Briefly describe the causes behind the issues. This could be helpful to understand the adopted solutions behind some nasty bugs or complex issues.

Solutions

Briefly describe the solutions you have implemented for the issues explained above.

Dependencies (Optional)

If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

sso login device backup

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

Ups 🫰🟨

This PR is too big. Please try to break it up into smaller PRs.

@emmaoke-w emmaoke-w marked this pull request as ready for review October 8, 2025 17:35
Copy link
Contributor

github-actions bot commented Oct 8, 2025

@emmaoke-w looks like you are rolling back kalium to a previous commitish.

This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.

develop This PR
59f008442a67f9026fd66e410da35835819874d8 546cdfe457ad8953ad7497bbfcd0cbbb645150b3

Is this intentional?

Copy link
Contributor

@emmaoke-w looks like you are rolling back kalium to a previous commitish.

This means that the PR's target branch (develop) is using a newer version of Kalium, and the changes in this PR will rollback Kalium to an older version.

develop This PR
59f008442a67f9026fd66e410da35835819874d8 546cdfe457ad8953ad7497bbfcd0cbbb645150b3

Is this intentional?


teamServiceHelper.userXIsMe("user2Name")

teamOwner = teamHelper?.usersManager!!.findUserBy(
Copy link
Contributor

Choose a reason for hiding this comment

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

teamHelper is non-nullable in this class so ? and !! can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved.🙏🏾

Comment on lines 36 to 50
val serial = runShellCommand("getprop ro.boot.serialno").trim()

when (serial) {
"ce091829205f7a3704" -> {
runShellCommand("pm clear org.lineageos.jelly")
}

"25181JEGR05249" -> {
runShellCommand("pm clear app.vanadium.browser")
}

else -> {
runShellCommand("pm clear com.android.chrome")
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if that's the best approach, because it means that for this one and only device with this specific serial number "ce091829205f7a3704" it will clear LineageOS Jelly browser cache and for another one and only specific device it will clear Vanadium cache - do we always run these tests only on these devices with Jelly or Vanadium browsers?
Maybe it would be better to always call commands for all three browsers, if there is no such browser on current device then the command will just return "Failed" instead of "Success", but we don't do anything with the result here so it shouldn't break anything. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved.🙏🏾

External("External")
}

enum class TeamRole(val permissionBitMask: Int) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just merge TeamRoles and TeamRole into one enum class? 🤔
Like:

enum class TeamRoles(val role: String, val permissionBitMask: Int) {
    Owner("Owner", 8191),
    etc.
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Resolved.🙏🏾

@emmaoke-w emmaoke-w requested a review from saleniuk October 17, 2025 08:30
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants