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
<!-- layouts/application.html.erb --> | |
<div data-controller="modal"> | |
<%= link_to "Get Started", new_authentication_path, data-action="modal#show" %> | |
<div data-target="modal.dialog"></div> | |
</div> |
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
test “Successful login” do | |
user = User.create!(name: "name", password: "password") | |
visit root_path | |
click_on "Get started" | |
fill_in :name, with: "name" | |
fill_in :password, with: "password" | |
click_on "Log in" | |
assert_text "Welcome back!" |
OlderNewer