1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/cypress/integration/2_search.spec.js

23 lines
621 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('Title test')
// Start search
cy.get('button')
.contains('Search')
.click()
// Verify there are results
cy.get('article > a', { timeout: 60000 }).should(
'have.length.greaterThan',
0
)
})
})