Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

chore: update test cases with app nav design #182

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Conversation

bilalawan321
Copy link
Contributor

@bilalawan321 bilalawan321 commented Oct 28, 2023

LEARNER-9542

Description

Automate the following screens for app nav design:

  • Create new post
  • Dates
  • HTML Component
  • Discussion Details
  • My courses list

Remove Course and Video sub section screens after app nav
Update all screens after Android release 5.0.3

@bilalawan321 bilalawan321 force-pushed the bilal/LEARNER-9542 branch 6 times, most recently from 6d957a4 to a48c03b Compare October 28, 2023 14:25
Fix failed test cases after releae 5.0.3

Update strings and android elements files for app nav designs
assert discussion_tab_element.get_attribute('selected') == 'true'
assert android_course_dashboard_page.course_dashboard_course_organization().text \
== strings.LOGIN_EDX_LOGO
assert android_course_dashboard_page.course_dashboard_course_expiry_date().text
Copy link

Choose a reason for hiding this comment

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

Can you please confirm what this assertion is doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

course_dashboard_course_expiry_date method returns the element that has the Course Ending date in it on the header of course dashboard page, and the assertion is expecting that element has valid text in it.

For reference, you can see the attached screenshot which has the text Ended on August 31

Screenshot 2023-10-30 at 8 01 42 PM

Comment on lines 163 to 166
# def test_upgrade_app(self, set_capabilities, setup_logging):
# """
# Verifies that user can upgrade app
# """
Copy link

Choose a reason for hiding this comment

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

Please remove commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 168 to 170
# global_contents = Globals(setup_logging)
# if global_contents.enable_workflows is False:
# assert global_contents.upgrade_target_app(set_capabilities)
Copy link

Choose a reason for hiding this comment

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

Please remove commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed


@pytest.mark.skip(reason="Not getting any element to scroll in landscape mode, will figure it out later")
# @pytest.mark.skip(reason="Not getting any element to scroll in landscape mode, will figure it out later")
Copy link

Choose a reason for hiding this comment

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

Please remove commented code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@bilalawan321 bilalawan321 requested a review from moeez96 October 30, 2023 17:14
@bilalawan321 bilalawan321 merged commit 3899fb8 into master Oct 31, 2023
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants