Skip to content

Added end to end test to Suggest a change and apply change for a Merge Request

Lavanya requested to merge lreddy/gitlab:mrsuggestion-scenario-branch into master

This Merge Request adds an end-to-end test for the following scenario.

  1. As a "root" user, create a new "developer-user" user.
  2. As a "root" user, create a project.
  3. Add the "developer-user" user to the project.
  4. As the "developer-user" user, commit a file to the project using SSH in a new branch.
  5. As the "developer-user" user, create a merge request (MR) and assign it to the "root" user for review.
  6. As the "root" user, suggest a change using the "Insert suggestion" button.
  7. As the "developer-user" user, apply the change.
  8. As the "root" user, merge the MR.
  9. As the "root" user, ensure that the repository now has the file with the suggested changes.

Remaining work:

  1. Observing the below error when trying to run the code which commits a file to the project using SSH in a new branch. You are not allowed to push code to this project. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists

Working on resolving the issue.

  1. Need to refactor the code to use page objects for the code written to automate the steps 5 to 9 mentioned in the scenario.

Merge request reports