Last active
March 12, 2019 09:49
-
-
Save PharaohKJ/ba8b6e16bba025ad1a16d26b1e947eb5 to your computer and use it in GitHub Desktop.
test:system (capybara) オレオレチートシート
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ツール | |
https://github.com/mugi-uno/nezumi | |
# 入力 | |
``` | |
fill_in 'staff_password', with: 'password' | |
click_on 'LOGIN' | |
``` | |
# セレクタ | |
``` | |
page.all('div', text: /\Aテキスト\z/) | |
assert_selector('div', text: /\Aテキスト\z/, count: 1) | |
`` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment