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

Included first test for GitLab code preview #109

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
# (Required) Ensure all values are filled up
name: "Code Preview"
status: Active
priority: Normal
folder: Slash Commands and Setup
authors: "@DHaussermann"
team_ownership: []
priority_p1_to_p4: P2 - Core Functions (Do core functions work?)

# (Optional)
location: null
component: null
tags: []
labels: []
tested_by_contributor: null

# (Optional) Test type and tools
cypress: null
detox: null
mmctl: null
playwright: null
rainforest: []
manual_test_environments: []

# Do not change
id: null
key: null
created_on: null
last_updated: null
case_hashed: null
steps_hashed: null
---

**Step 1**

1. Ensure _Enable Code Previews:_ is set to Enable for Public Project
2. Ensure the test user is connected to GitLab
3. Post a valid code preview link that references one or more lines of code
ex: https://gitlab.com/dhaussermann/dkh-public/-/blob/286879ea66708b8cdda736d6b178d6722eb8d5ba/script.js#L11-L12

**Expected**

The Plugin will show a link to the file with project and file name. Below the link will be a code block showing the 2 lines of code specified.