Skip to content

Commit abc5505

Browse files
committed
Remove attempts at system tests until underlying problems are fixed
1 parent 83d5e78 commit abc5505

8 files changed

Lines changed: 5 additions & 203 deletions

test/application_system_test_case.rb

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -97,46 +97,3 @@ def post_form_select_tag(tag_name, create_new = false)
9797
'but could not select it from options without creating a new tag.'
9898
end
9999
end
100-
101-
def create_post(body_text, title_text)
102-
click_on 'Create Post'
103-
fill_in 'Body', with: body_text
104-
fill_in 'Summarize your post with a title:', with: title_text
105-
post_form_select_tag(tags(:faq).name)
106-
107-
assert_difference('Post.count') do
108-
click_on 'Save Post in '
109-
end
110-
end
111-
112-
def create_thread(comment_body_text, thread_title)
113-
click_on 'Start new comment thread'
114-
fill_in 'Your comment', with: comment_body_text
115-
fill_in 'Comment thread title', with: thread_title
116-
117-
assert_difference('Comment.count') do
118-
click_on 'Create thread'
119-
end
120-
end
121-
122-
def create_comment(comment_body_text)
123-
click_on 'See the whole thread'
124-
fill_in 'Your message', with: comment_body_text
125-
126-
assert_difference('Comment.count') do
127-
click_on 'Add reply'
128-
end
129-
end
130-
131-
def assert_notification(notification_title)
132-
click_on 'Open notifications'
133-
assert_text(notification_title)
134-
click_on 'Open notifications'
135-
end
136-
137-
def assert_no_notification(notification_title)
138-
click_on 'Open notifications'
139-
assert_no_text(notification_title)
140-
click_on 'Open notifications'
141-
end
142-
end
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
22

33
main_default_filter:
4-
user: filters_user
4+
user: standard_user
55
filter: one
66
category: main
77

88
meta_default_filter:
9-
user: filters_user
9+
user: standard_user
1010
filter: one
1111
category: meta

test/fixtures/community_users.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,3 @@ sample_spammer:
105105
is_admin: false
106106
is_moderator: false
107107
reputation: 1
108-
109-
sample_filters_user:
110-
user: filters_user
111-
community: sample
112-
is_admin: false
113-
is_moderator: false
114-
reputation: 50

test/fixtures/filters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
one:
44
name: MyFilterOne
5-
user: filters_user
5+
user: standard_user
66
min_score: 1.5
77
max_score: 1.5
88
min_answers: 1
@@ -11,7 +11,7 @@ one:
1111

1212
two:
1313
name: MyFilterTwo
14-
user: filters_user
14+
user: standard_user
1515
min_score: 1.5
1616
max_score: 1.5
1717
min_answers: 1

test/fixtures/thread_followers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ standard_author_normal:
88

99
standard_author_question_one:
1010
user: standard_user
11-
post: question_one
11+
post: question_one

test/fixtures/user_abilities.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,3 @@ sp_eo:
8080
sp_ur:
8181
community_user: sample_spammer
8282
ability: unrestricted
83-
84-
f_eo:
85-
community_user: sample_filters_user
86-
ability: everyone
87-
88-
f_ur:
89-
community_user: sample_filters_user
90-
ability: unrestricted

test/fixtures/users.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,3 @@ spammer:
163163
is_global_admin: false
164164
is_global_moderator: false
165165
confirmed_at: 2020-01-01T00:00:00.000000Z
166-
167-
filters_user:
168-
email: filters@qpixel-test.net
169-
encrypted_password: '$2a$11$roUHXKxecjyQ72Qn7DWs3.9eRCCoRn176kX/UNb/xiue3aGqf7xEW'
170-
sign_in_count: 1337
171-
username: filters_user
172-
is_global_admin: false
173-
is_global_moderator: false
174-
confirmed_at: 2020-01-01T00:00:00.000000Z

test/system/thread_test.rb

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)