{"categories":["RSpec","Capybara","Ruby","Ruby on Rails","Unit Test"],"image_url":"https://images-fe.ssl-images-amazon.com/images/I/51%2B%2BTmpu%2BuL._SL160_.jpg","published":"2020-02-25 15:00:00","url":"https://chaika.hatenablog.com/entry/2020/02/25/150000","description":"\u30d7\u30ed\u30c0\u30af\u30c8\u306e\u65bd\u7b56\u3067\u3042\u308b\u30d5\u30a9\u30fc\u30e0\u3092 react component \u306b\u7f6e\u304d\u63db\u3048\u305f\u6240\u3001\u5143\u3005\u3042\u3063\u305f feature spec \u3067 fill_in \u3057\u3066\u3044\u305f\u90e8\u5206\u304c Capybara::ElementNotFound: \u3067\u843d\u3061\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 fill_in \u306f id \u304b name \u304c\u7121\u3044\u3068\u9078\u629e\u3067\u304d\u306a\u3044\uff1f \u65b0\u3057\u304f\u3057\u305f React component \u306e JS \u3067\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u3092\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u30d5\u30a9\u30fc\u30e0\u5185\u306e input \u30bf\u30b0\u306b id / name \u5c5e\u6027\u304c\u7121\u304b\u3063\u305f\u306e\u3067\u3001feature spec \u3092\u6b21\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u7f6e\u304d\u63db\u3048\u3066\u3044\u307e\u3057\u305f\u3002 fill_in 'input[type=\"email\"]', wi\u2026","width":"100%","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2020%2F02%2F25%2F150000\" title=\"RSpec Capybara name / id \u306e\u306a\u3044 input \u306e fill_in \u306b\u30cf\u30de\u308b - \u304b\u3082\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u304b\u3082\u30e1\u30e2","title":"RSpec Capybara name / id \u306e\u306a\u3044 input \u306e fill_in \u306b\u30cf\u30de\u308b","blog_url":"https://chaika.hatenablog.com/","type":"rich","author_name":"kikiki-kiki","provider_url":"https://hatena.blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/kikiki-kiki/","provider_name":"Hatena Blog"}