Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dc14bda4
Commit
dc14bda4
authored
Oct 11, 2019
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added comment about cache buster in test for avatars
parent
9fccefcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
spec/features/snippets/user_creates_snippet_spec.rb
spec/features/snippets/user_creates_snippet_spec.rb
+2
-0
No files found.
spec/features/snippets/user_creates_snippet_spec.rb
View file @
dc14bda4
...
@@ -45,6 +45,8 @@ describe 'User creates snippet', :js do
...
@@ -45,6 +45,8 @@ describe 'User creates snippet', :js do
link
=
find
(
'a.no-attachment-icon img[alt="banana_sample"]'
)[
'src'
]
link
=
find
(
'a.no-attachment-icon img[alt="banana_sample"]'
)[
'src'
]
expect
(
link
).
to
match
(
%r{/uploads/-/system/user/
#{
user
.
id
}
/
\h
{32}/banana_sample
\.
gif
\z
}
)
expect
(
link
).
to
match
(
%r{/uploads/-/system/user/
#{
user
.
id
}
/
\h
{32}/banana_sample
\.
gif
\z
}
)
# Adds a cache buster for checking if the image exists as Selenium is now handling the cached regquests
# not anymore as requests when they come straight from memory cache.
reqs
=
inspect_requests
{
visit
(
"
#{
link
}
?ran=
#{
SecureRandom
.
base64
(
20
)
}
"
)
}
reqs
=
inspect_requests
{
visit
(
"
#{
link
}
?ran=
#{
SecureRandom
.
base64
(
20
)
}
"
)
}
expect
(
reqs
.
first
.
status_code
).
to
eq
(
200
)
expect
(
reqs
.
first
.
status_code
).
to
eq
(
200
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment