Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9344698
home.spec.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
753 B
Subscribers
None
home.spec.js
View Options
/**
* Copyright (C) 2019 The Software Heritage developers
* See the AUTHORS file at the top-level directory of this distribution
* License: GNU Affero General Public License version 3, or any later version
* See top-level LICENSE file for more information
*/
const
$
=
Cypress
.
$
;
const
url
=
'/'
;
describe
(
'Home Page Tests'
,
function
()
{
it
(
'should display positive stats for each category'
,
function
()
{
cy
.
visit
(
url
)
.
wait
(
3000
)
// wait counters request result
.
get
(
'.swh-counter'
)
.
then
((
counters
)
=>
{
for
(
let
counter
of
counters
)
{
let
innerText
=
$
(
counter
).
text
();
const
value
=
parseInt
(
innerText
.
replace
(
/,/g
,
''
));
assert
.
isAbove
(
value
,
0
);
}
});
});
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 2:41 PM (5 d, 8 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3330331
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment