mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
21 lines
609 B
JavaScript
21 lines
609 B
JavaScript
/// <reference types="Cypress" />
|
|
describe('Search', () => {
|
|
before(() => {
|
|
cy.visit('/')
|
|
// Wait for end of loading
|
|
cy.get('button', { timeout: 60000 }).should('have.length', 1)
|
|
})
|
|
|
|
it('should search for assets from homepage', () => {
|
|
// Fill search phrase
|
|
cy.get('input#search').type('Commons Integration Test')
|
|
// Start search
|
|
cy.get('button').contains('Search').click()
|
|
// Verify there are results
|
|
cy.get('article > a', { timeout: 60000 }).should(
|
|
'have.length.greaterThan',
|
|
0
|
|
)
|
|
})
|
|
})
|