e2e test fix

This commit is contained in:
Milos Stojanovic 2020-02-25 11:20:01 +01:00
parent 4bf008950f
commit 4bbc3545f6
2 changed files with 12 additions and 2 deletions

View File

@ -25,10 +25,10 @@
</ul>
</div>
<div>
<a class="search-btn" @click="search">
<a id="search" class="search-btn" @click="search">
<b-icon icon="search" size="is-small" />
</a>
<a class="is-paddingless" @click="selectDir">
<a id="sitemap" class="is-paddingless" @click="selectDir">
<b-icon icon="sitemap" size="is-small" />
</a>
</div>

View File

@ -130,4 +130,14 @@ describe('Browser', () => {
cy.contains('Close').click()
})
it('Search', () => {
cy.viewport(1024, 768)
cy.visit('/')
cy.contains('My Documents').click()
cy.get('#search').click()
cy.contains('Search')
cy.contains('Name')
cy.contains('Close').click()
})
})