Skip to content

Commit 54243ab

Browse files
committed
Add tests to see what users see
1 parent 71d54e6 commit 54243ab

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/system/ci_failures_test.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,32 @@ class CIFailuresTest < ApplicationSystemTestCase
44
test 'empty test to start with' do
55
assert true
66
end
7+
8+
test 'temporary test to analyse CI failures what does basic user see in main' do
9+
category = categories(:main)
10+
log_in :basic_user
11+
visit category_path(category)
12+
assert_text 'Nonexistent to force screenshot'
13+
end
14+
15+
test 'temporary test to analyse CI failures what does standard user see in main' do
16+
category = categories(:main)
17+
log_in :standard_user
18+
visit category_path(category)
19+
assert_text 'Nonexistent to force screenshot'
20+
end
21+
22+
test 'temporary test to analyse CI failures what does standard user see after adding post to meta' do
23+
category = categories(:meta)
24+
log_in :standard_user
25+
visit category_path(category)
26+
post_title = 'Test title text for testing threads'
27+
create_post('Test body text for testing threads.', post_title)
28+
assert_text 'Unfollow new' # Ensure post has finished saving to avoid timing problems
29+
30+
log_out
31+
log_in :standard_user
32+
visit category_path(category)
33+
assert_text 'Nonexistent to force screenshot'
34+
end
735
end

0 commit comments

Comments
 (0)