diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dfda3f905..4757642d9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,6 @@ 1. [15777](https://github.com/influxdata/influxdb/pull/15777): Fix long startup when running 'influx help' 1. [15731](https://github.com/influxdata/influxdb/pull/15731): Ensure array cursor iterator stats accumulate all cursor stats -1. [15766](https://github.com/influxdata/influxdb/pull/15766): Reset delete with predicate state after submission ## v2.0.0-alpha.19 [2019-10-30] diff --git a/ui/cypress/e2e/buckets.test.ts b/ui/cypress/e2e/buckets.test.ts index 945511c006..97f7f538a3 100644 --- a/ui/cypress/e2e/buckets.test.ts +++ b/ui/cypress/e2e/buckets.test.ts @@ -109,7 +109,54 @@ describe('Buckets', () => { }) }) - describe('delete with predicate', () => { + // skipping until feature flag feature is removed for deleteWithPredicate + describe.skip('should alphabetize buckets in dropdown', () => { + beforeEach(() => { + cy.get('@org').then(({id, name}) => { + cy.createBucket(id, name, 'Funky Town').then(() => { + cy.createBucket(id, name, 'ABC').then(() => { + cy.createBucket(id, name, 'Jimmy Mack') + }) + }) + }) + }) + + it('alphabetizes buckets', () => { + cy.getByTestID('bucket-delete-task') + .first() + .click() + .then(() => { + cy.getByTestID('dropdown--button') + .contains('ABC') + .click() + .then(() => { + // get the bucket list + cy.get('.cf-dropdown-item--children') + .should('have.length', 6) + .then(el => { + const results = [] + // output in an array + el.text((index, currentContent) => { + results[index] = currentContent + }) + const expectedOrder = [ + 'ABC', + 'defbuck', + 'Funky Town', + 'Jimmy Mack', + '_tasks', + '_monitoring', + ] + // check the order + expect(results).to.deep.equal(expectedOrder) + }) + }) + }) + }) + }) + + // skipping until feature flag feature is removed for deleteWithPredicate + describe.skip('delete with predicate', () => { beforeEach(() => { cy.getByTestID('bucket-delete-task').click() cy.getByTestID('overlay--container').should('have.length', 1) diff --git a/ui/cypress/e2e/explorer.test.ts b/ui/cypress/e2e/explorer.test.ts index 3dce59f4da..986b47ad21 100644 --- a/ui/cypress/e2e/explorer.test.ts +++ b/ui/cypress/e2e/explorer.test.ts @@ -417,7 +417,8 @@ describe('DataExplorer', () => { }) }) - describe('delete with predicate', () => { + // skipping until feature flag feature is removed for deleteWithPredicate + describe.skip('delete with predicate', () => { beforeEach(() => { cy.getByTestID('delete-data-predicate').click() cy.getByTestID('overlay--container').should('have.length', 1) diff --git a/ui/src/buckets/components/BucketCard.tsx b/ui/src/buckets/components/BucketCard.tsx index 959864c729..d221564a36 100644 --- a/ui/src/buckets/components/BucketCard.tsx +++ b/ui/src/buckets/components/BucketCard.tsx @@ -13,6 +13,7 @@ import { } from '@influxdata/clockface' import BucketContextMenu from 'src/buckets/components/BucketContextMenu' import BucketAddDataButton from 'src/buckets/components/BucketAddDataButton' +import {FeatureFlag} from 'src/shared/utils/featureFlag' // Constants import {isSystemBucket} from 'src/buckets/constants/index' @@ -114,12 +115,14 @@ class BucketRow extends PureComponent { size={ComponentSize.ExtraSmall} onClick={this.handleRenameBucket} /> -