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

Fix #2587: testHomeActivity_allTopicsCompleted_displaysAllTopicCards() test not working #5330

Conversation

deonwaju
Copy link
Collaborator

@deonwaju deonwaju commented Feb 4, 2024

Explanation

Fix for #2587: split test method into 4 versions, [mobilePortrait, mobileLandscape, tabletPortrait, tabletLandscape]

A. Mobile potrait test
mobile-port

B. Mobile Lanscape
mobile-landscape

C. Tablet Portrait
tablet-port

D. Tablet Landscape test.
tablet-land

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

…trait, landscape] and tablets[portrait, landscape].
@deonwaju deonwaju requested a review from a team as a code owner February 4, 2024 13:27
@deonwaju
Copy link
Collaborator Author

deonwaju commented Feb 4, 2024

PTAL @adhiamboperes

Copy link
Collaborator

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

Thanks @deonwaju!

In addition to my inline comments, can you please share a screenshot that shows you ran these tests on an emulator/device and they passed? The issues describes the tests failing in tablet so we need proof that they now pass in tablets.

One more thing, was the issue reproducible before you wrote the fix? I find it strange that the original test had no prior configurations that limited it to running on robolectric, or ignoring it yet we had no reported failures(It's great that this PR increases the test coverage, but I'd like to check).

@deonwaju
Copy link
Collaborator Author

deonwaju commented Feb 6, 2024

Thanks @deonwaju!

In addition to my inline comments, can you please share a screenshot that shows you ran these tests on an emulator/device and they passed? The issues describes the tests failing in tablet so we need proof that they now pass in tablets.

One more thing, was the issue reproducible before you wrote the fix? I find it strange that the original test had no prior configurations that limited it to running on robolectric, or ignoring it yet we had no reported failures(It's great that this PR increases the test coverage, but I'd like to check).

Ok got it, and yes the issue was reproducible, I took your advice to test on a larger tablet screen size, so used a 10" pixel C tablet, and I was able to reproduce the issue. Turns out that the test passes only when the tablet is in portrait mode, in landscape mode it fails. That was the issue

@deonwaju
Copy link
Collaborator Author

deonwaju commented Feb 6, 2024

@adhiamboperes
Please find attached the screenshots for each of the tests.

A. Mobile portrait test

mobile-potrait

B. Mobile landscape test

mobile-land

C. Tablet portrait test

tablet-portrait

D. Tablet landscape test

tablet-land

@adhiamboperes
Copy link
Collaborator

@deonwaju, the tests look good. Please complete the test name suggestions and resubmit for approval.

@deonwaju
Copy link
Collaborator Author

deonwaju commented Feb 7, 2024

PTAL @adhiamboperes

@oppiabot oppiabot bot assigned adhiamboperes and unassigned deonwaju Feb 7, 2024
Copy link

oppiabot bot commented Feb 7, 2024

Unassigning @deonwaju since a re-review was requested. @deonwaju, please make sure you have addressed all review comments. Thanks!

Copy link
Collaborator

@adhiamboperes adhiamboperes left a comment

Choose a reason for hiding this comment

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

Thanks @deonwaju! This LGTM.

@adhiamboperes adhiamboperes merged commit 1295328 into oppia:develop Feb 8, 2024
25 checks passed
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.

2 participants