概要
Capybaraのスニペットを導入
内容
インストール
・Ctrl+Shift+p,install,enter,Capybara Snippets
利用サンプル
input | generate |
---|---|
atf | attach_file "id_or_name_or_label", "path" |
back | background |
che | check "id_or_name_or_label" |
cho | choose "label" |
clb | click_button "value" |
cli | click_link "link_text" |
clo | click_on "locator" |
fea | feature |
fill | fill_in "id_or_name_or_label", with: "value" |
psh | page.should have_css("") |
sav | save_and_open_page |
sce | scenario |
sel | select "option_text", from: "dropdown" |
unc | uncheck "id_or_name_or_label" |
uns | unselect "id_or_name_or_label" |
vis | visit "url" |
witi | within |