fix(ui): Fixing the sort by seconds

Fixing flakey test
pull/15728/head
Zoe Steinkamp 2019-11-04 09:07:23 -07:00
parent fd09f267c0
commit f37ea3bfb8
1 changed files with 1 additions and 10 deletions

View File

@ -59,14 +59,9 @@ describe('Buckets', () => {
})
describe('Searching and Sorting', () => {
beforeEach(() => {
cy.get<Organization>('@org').then(({id, name}: Organization) => {
cy.createBucket(id, name, 'cookie')
})
})
it('Searching buckets', () => {
cy.getByTestID('search-widget').type('cookie')
cy.getByTestID('search-widget').type('tasks')
cy.getByTestID('bucket-card').should('have.length', 1)
})
@ -88,10 +83,6 @@ describe('Buckets', () => {
.first()
.contains('_tasks')
// Randomness of forever means this can not work with two forever buckets
// So we delete the cookie bucket to remove this problem
cy.getByTestID(`context-delete-menu cookie`).click()
cy.getByTestID(`context-delete-bucket cookie`).click()
cy.getByTestID('retention-sorter').click()
cy.getByTestID('bucket-card')
.first()