Skip to content

Commit 013d705

Browse files
authored
Annotate bad example code with explicit comment
1 parent 545909d commit 013d705

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ the dynamically created element. For example, instead of writing something like:
605605

606606
```ruby
607607
class ShowPage < AePageObjects::Document
608-
element :share_modal, is: ShareModal
608+
element :share_modal, is: ShareModal # bad because the `share_modal` element
609+
# can always be accessed, even when the real modal cannot be interacted with
609610

610611
def share_image(&block)
611612
node.click_button('Share')

0 commit comments

Comments
 (0)