-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
システムスペックのドライバをseleniumに変更してJSに対応。テストを追加
- Loading branch information
1 parent
4a6e1ca
commit 220d29b
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe "Homes", type: :system do | ||
RSpec.describe 'Homes', type: :system do | ||
before do | ||
driven_by(:rack_test) | ||
driven_by(:selenium_chrome_headless) | ||
end | ||
|
||
scenario 'visiting the top page' do | ||
visit root_path | ||
expect(page).to have_title 'メインページ | MAAKS' | ||
end | ||
|
||
pending "add some scenarios (or delete) #{__FILE__}" | ||
scenario 'showing how to modal when first access in day and no show how to modal when after the second access that day' do | ||
visit root_path | ||
expect(page).to have_selector '#how_to_maaks_modal', visible: :visible | ||
visit root_path | ||
expect(page).to have_no_selector '#how_to_maaks_modal', visible: :visible | ||
end | ||
end |