CustomLocator plugin takes all selector as key

Đang mở
#2,924 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
38/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript, node.js
Lĩnh vực
testing-qa

Hướng nghiên cứu

Tái hiện hai ví dụ I.click trong issue khi plugin customLocator được bật. Theo dõi cách plugin xử lý selector, sau đó thêm kiểm thử hồi quy cho một locator tùy chỉnh theo sau bởi hậu tố CSS; hoàn tất khi hậu tố được giữ nguyên và phần tử kết quả có thể được click.

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

Mô tả

bug plugin
What are you trying to achieve?

I'd like to use a custom locator and a suffix css selector

What do you get instead?

Instead of concatening the custom locator and the end of the css selector, I've got a full length of customLocator

Provide test source code if related

// What I want to achieve:
 I.click('[data-testid=register_button] option:first-child()');
// ==> gives OK

// When using the custom locator:
 I.click('$register_button option:first-child()');
// ==> gives     [1] <pause> Error | Error: Clickable element ".//*[@data-testid='register_button option:first-child()']" was not found by text|CSS|XPath
Details
  • CodeceptJS version: 3.0.5
  • NodeJS Version: 14.16
  • Operating System: Linux
  • Configuration file:
plugins: {
        allure: {},
        pauseOnFail: {},
        customLocator: {
            enabled: true,
            attribute: 'data-testid',
            showActual: true,
        },
    },

Would it be possible to add a new option like 'final delimiter'? (space by default) It would truncate the locator to be used?

Ngôn ngữ chính
JavaScript
Star
4.2k
Fork
756
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
16

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 codeceptjs/CodeceptJS

Tất cả issue của codeceptjs/CodeceptJS

Issue tương tự

Thêm issue về JavaScript

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.