Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/profiles')
-rw-r--r--spec/features/profiles/preferences_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/profiles/preferences_spec.rb b/spec/features/profiles/preferences_spec.rb
index 7bbb591a4ec..a946064a877 100644
--- a/spec/features/profiles/preferences_spec.rb
+++ b/spec/features/profiles/preferences_spec.rb
@@ -15,6 +15,14 @@ describe 'Profile > Preferences' do
visit profile_preferences_path
end
+ it 'creates a flash message' do
+ choose "user_theme_id_#{theme.id}"
+
+ within('.flash-container') do
+ expect(page).to have_content('Preferences saved.')
+ end
+ end
+
it 'reflects the changes immediately' do
expect(page).to have_selector("body.#{default.css_class}")