Skip to content
Snippets Groups Projects
Commit 8ab948ab authored by Kalpit Kothari's avatar Kalpit Kothari
Browse files

Add tests for Home Page

parent fe2372c6
No related branches found
No related tags found
1 merge request!124Add Tests for Home Page
/**
* 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 url = '/';
const $ = Cypress.$;
describe('Home Page Tests', function() {
it('should display positive stats for each category', function() {
cy.visit(url);
cy.get('.swh-counter')
.then((counters) => {
for(let counter of counters) {
let innerText = $(counter).text();
const value = parseInt(innerText.replace(/,/g, ''));
assert.isAbove(value, 0);
}
});
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment