Skip to content

Commit

Permalink
feat(templates): Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ebb-tide committed Aug 12, 2020
1 parent cc404a3 commit 75ad7ef
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 128 deletions.
2 changes: 1 addition & 1 deletion ui/cypress/e2e/buckets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Buckets', () => {
const newBucket = '🅱️ucket'
cy.getByTestID(`bucket--card--name ${newBucket}`).should('not.exist')

cy.getByTestID('Create Bucket').click()
cy.getByTestID('Create New Bucket').click()
cy.getByTestID('overlay--container').within(() => {
cy.getByInputName('name').type(newBucket)
cy.get('.cf-button')
Expand Down
15 changes: 1 addition & 14 deletions ui/cypress/e2e/dashboardsIndex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Dashboards', () => {
})
cy.getByTestID('add-resource-button').should($b => {
expect($b).to.have.length(1)
expect($b).to.contain('Create Dashboard')
expect($b).to.contain('Create New Dashboard')
})
})
})
Expand Down Expand Up @@ -68,11 +68,6 @@ describe('Dashboards', () => {

cy.getByTestID('dashboard-card').should('contain', newName)

// Open Export overlay
cy.getByTestID('context-menu-item-export').click({force: true})
cy.getByTestID('export-overlay--text-area').should('exist')
cy.get('.cf-overlay--dismiss').click()

// Create from header
cy.getByTestID('add-resource-button').click()

Expand All @@ -99,14 +94,6 @@ describe('Dashboards', () => {
cy.getByTestID('context-delete-dashboard').click()
})

cy.getByTestID('dashboard-card')
.first()
.trigger('mouseover')
.within(() => {
cy.getByTestID('context-delete-menu').click()
cy.getByTestID('context-delete-dashboard').click()
})

cy.getByTestID('empty-dashboards-list').should('exist')
})

Expand Down
2 changes: 1 addition & 1 deletion ui/cypress/e2e/labels.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('labels', () => {

cy.getByTestID('overlay--container').within(() => {
cy.getByTestID('overlay--header')
.contains('Create Label')
.contains('Create New Label')
.should('be.visible')
// dismiss
cy.getByTestID('overlay--header')
Expand Down
2 changes: 1 addition & 1 deletion ui/src/tasks/components/TaskCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface PassedProps {
type ReduxProps = ConnectedProps<typeof connector>
type Props = PassedProps & ReduxProps

class TaskCard extends PureComponent<
export class TaskCard extends PureComponent<
Props & RouteComponentProps<{orgID: string}>
> {
public render() {
Expand Down
65 changes: 0 additions & 65 deletions ui/src/variables/utils/exportVariables.test.ts

This file was deleted.

46 changes: 0 additions & 46 deletions ui/src/variables/utils/exportVariables.ts

This file was deleted.

0 comments on commit 75ad7ef

Please sign in to comment.