Skip to content

Commit

Permalink
Backed up for the future working
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelvaara committed Jun 14, 2023
1 parent 3be39a1 commit edc224c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@
},
"autoload": {
"classmap": ["src/controller/", "src/model/", "src/model/sparql/"]
},
"config": {
"allow-plugins": {
"robloach/component-installer": true
}
}
}
34 changes: 33 additions & 1 deletion cypress/e2e/vocab-home.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Vocabulary home page', () => {
})
})

context('Statistics', () => {
context('Resource counts', () => {
it('The amounts must match', () => {
cy.visit('/yso/fi')
cy.get('#resource-counts')
Expand All @@ -29,4 +29,36 @@ describe('Vocabulary home page', () => {
})
})
})

context('Term counts', () => {
it('Term counts by language', () => {
const headings = ['Concept language', 'Preferred terms', 'Alternate terms', 'Hidden terms']
cy.visit('/yso/fi')
cy.get('table tbody tr').find('th').then('ths') => {
$(ths)
} map('innerText').should('deep.equal', headings)

})
})


// context('Term counts', () => {
// it('The amounts must match', () => {
// cy.visit('/yso/fi')
// cy.get('#term-counts')
// .contains('tr', 'englanti').find('td')
// .then((row) => {
// for (let i = 0; i < row.length; i++) {
// cy.task('log', `tr:eq(${i}) td:eq(1)`)
// cy.get('#resource-counts')
// .find(`tr:eq(${i}) td:eq(1)`)
// .should('not.be.empty')
// .wrap(0)
// .should('not.be.ok')
// }
// })
// })
// })


})

0 comments on commit edc224c

Please sign in to comment.