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

[GSoC'24] M2.1 : Fix a part of #20374: Acceptance test coverage for 2 Logged-out Users' CUJs. #20674

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

Akhilesh-max
Copy link
Contributor

@Akhilesh-max Akhilesh-max commented Jul 14, 2024

Overview

  1. This PR fixes or fixes part of [GSoC'24 M1+M2]: Acceptance Test Coverage for Learner's and Admin's CUJs. #20374 .
  2. This PR does the following: This PR provides acceptance test coverage for the CUJs:

12.1: select-and-play-topic-from-math-classroom.spec.ts

12.2: browse-and-search-for-lessons-in-community-library.spec.ts

Essential Checklist

Please follow the instructions for making a code change.

  • I have linked the issue that this PR fixes in the "Development" section of the sidebar.
  • I have checked the "Files Changed" tab and confirmed that the changes are what I want to make.
  • I have written tests for my code.
  • The PR title starts with "Fix #bugnum: " or "Fix part of #bugnum: ...", followed by a short, clear summary of the changes.
  • I have assigned the correct reviewers to this PR (or will leave a comment with the phrase "@{{reviewer_username}} PTAL" if I can't assign them directly).

Proof that changes are correct

NA

PR Pointers

@Akhilesh-max Akhilesh-max requested review from a team as code owners July 14, 2024 16:34
Copy link

oppiabot bot commented Jul 14, 2024

Hi @Akhilesh-max, can you complete the following:

  1. The proof that changes are correct has not been provided, please make sure to upload a image/video showing that the changes are correct. Or include a sentence saying "No proof of changes needed because" and the reason why proof of changes cannot be provided.
    Thanks!

Copy link

oppiabot bot commented Jul 14, 2024

Assigning @imchristie for the first pass review of this PR. Thanks!

@Akhilesh-max Akhilesh-max marked this pull request as draft July 14, 2024 16:35
@Akhilesh-max Akhilesh-max marked this pull request as ready for review July 16, 2024 10:26
@Akhilesh-max
Copy link
Contributor Author

@imchristie These tests ain't really small, there are lots of utilities needed. For now, have only written the specs file and decided what all is needed for the tests. Hoping to complete this PR by today EOD, IST.

Copy link
Member

@imchristie imchristie left a comment

Choose a reason for hiding this comment

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

Left some comments. Reassign me for review when all the functions are defined.

// limitations under the License.

/**
* @fileoverview Acceptance Test for checking if all buttons on the
Copy link
Member

Choose a reason for hiding this comment

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

Wrong description

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

* @param {string} explorationId - The ID of the exploration to play.
*/
async playExploration(explorationId: string): Promise<void> {
await Promise.all([
Copy link
Member

Choose a reason for hiding this comment

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

Use this.goto()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Akhilesh-max Akhilesh-max requested a review from a team as a code owner July 17, 2024 14:03
@Akhilesh-max
Copy link
Contributor Author

@DubeySandeep @nikitaevg PTAL.
Thanks.

@oppiabot oppiabot bot assigned DubeySandeep and nikitaevg and unassigned Akhilesh-max Jul 17, 2024
Copy link

oppiabot bot commented Jul 17, 2024

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

Copy link

oppiabot bot commented Jul 17, 2024

Hi @Akhilesh-max. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!

Copy link

oppiabot bot commented Jul 17, 2024

Hi @Akhilesh-max. Due to recent changes in the "develop" branch, this PR now has a merge conflict. Please follow this link if you need help resolving the conflict, so that the PR can be merged. Thanks!

Copy link
Member

@imchristie imchristie left a comment

Choose a reason for hiding this comment

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

Left some comments

Copy link
Member

Choose a reason for hiding this comment

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

Why not delete the whole file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some of the functions in this utility file are being used in some other wdio e2e tests, so, couldn't remove it whole. (Only removed the dead functions)

@Akhilesh-max
Copy link
Contributor Author

@imchristie PTAL.
thanks.

Copy link
Member

@imchristie imchristie left a comment

Choose a reason for hiding this comment

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

LGTM! But there're 6 failures in CI. Make sure to fix them before merging.

Copy link

oppiabot bot commented Jul 18, 2024

Unassigning @imchristie since they have already approved the PR.

Copy link
Contributor

@nikitaevg nikitaevg left a comment

Choose a reason for hiding this comment

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

LGTM for the frontend changes

Copy link

oppiabot bot commented Jul 18, 2024

Unassigning @nikitaevg since they have already approved the PR.

@Akhilesh-max Akhilesh-max changed the title [GSoC'24] M2.1 : Fix a part of #20374: Acceptance test coverage for 3 Logged-out Users' CUJs. [GSoC'24] M2.1 : Fix a part of #20374: Acceptance test coverage for 2 Logged-out Users' CUJs. Jul 18, 2024
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.

None yet

4 participants