1

またはのような単純なタグのテストがいくつかありますが、結果は正しいですが、rspec テストは失敗しています。を使用して出力が正しいことを検証できますがsave_and_open_page、rspec テストでこれが有効な出力と見なされない理由がわかりません!?

何が悪いのか分かりますか?ありがとう!

仕様コード

    it { save_and_open_page; should have_selector('title', text: "CredSimple - Sign in") }

結果の失敗メッセージ

Failure/Error: it { save_and_open_page should have_selector('title', text: "CredSimple - Sign in") }
     expected css "title" with text "CredSimple - Sign in" to return something

save_and_open_page は、テストが求めているタイトルがページにあることを確認します。

<title>CredSimple - Sign in</title>
4

0 に答える 0