-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move user info elements and add switch for beta program
- Loading branch information
David Kang
committed
Aug 23, 2019
1 parent
e88f3ae
commit 5a39f08
Showing
4 changed files
with
77 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
#home-login { | ||
color: $gray-500; | ||
} | ||
|
||
.activity-percentil0 { | ||
background-color: #dcd5da; | ||
} | ||
|
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
30 changes: 30 additions & 0 deletions
30
src/api/spec/bootstrap/features/webui/users/user_home_page_spec.rb
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
require 'browser_helper' | ||
|
||
RSpec.feature "User's home project creation", type: :feature, js: true do | ||
let!(:user) { create(:confirmed_user, login: 'Jim', realname: 'Jim Knopf', email: 'jim.knopf@puppenkiste.com') } | ||
|
||
describe 'as a logged-in user' do | ||
before do | ||
login user | ||
visit home_path | ||
end | ||
|
||
scenario 'public beta program' do | ||
within('#beta-program') do | ||
expect(page).to have_css('.fa-toggle-off') | ||
end | ||
|
||
click_link('Public beta program') | ||
expect(page).to have_text("User data for user 'Jim' successfully updated.") | ||
within('#beta-program') do | ||
expect(page).to have_css('.fa-toggle-on') | ||
end | ||
|
||
click_link('Public beta program') | ||
expect(page).to have_text("User data for user 'Jim' successfully updated.") | ||
within('#beta-program') do | ||
expect(page).to have_css('.fa-toggle-off') | ||
end | ||
end | ||
end | ||
end |
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