HTML elements in feature description are not included

Đang mở
#354 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện phần mô tả feature trong cucumber-html v21.4.1, sau đó lần theo React component render các phần mô tả feature và so sánh với việc render scenario text. Hoàn thành khi các phần tử giống HTML trong phần mô tả feature được đưa vào và render dưới dạng văn bản nguyên văn mà không ngăn report được render.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

:bug: bug
👓 What did you see?
Feature: Belly

  Header text

  </script><script>alert('hello')</script>

  Footer text

  Scenario: a few cukes "</script><script>alert('hello')</script>"
    Given I have 42 cukes in my belly
    When I wait 1 hour
    Then my belly should growl

Note that the first </script><script>alert('hello')</script> from the feature description is not included, the second is.

image

✅ What did you expect to see?

All html elements should be included, rendered as text.

📦 Which tool/library version are you using?

cucumber-html v21.4.1

This is important, because without https://github.com/cucumber/html-formatter/pull/312 the report will not render at all.

🔬 How could we reproduce it?

No response

📚 Any additional context?

No response

Ngôn ngữ chính
TypeScript
Star
39
Fork
13
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cucumber/react-components

Tất cả issue của cucumber/react-components

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.