Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
b5423f7
chore: install clockface beta
ChitlangeSahas Aug 30, 2021
4d6399e
chore: install clockface beta 5
ChitlangeSahas Aug 30, 2021
f2e32d4
chore: install clockface beta
ChitlangeSahas Aug 30, 2021
e195e12
chore: install clockface beta 5
ChitlangeSahas Aug 30, 2021
1b534d1
Merge branch 'install_clockface_beta' of github.com:influxdata/ui int…
Aug 31, 2021
bbdb5b4
chore: fix navigation tests (new navigation has diff quirks)
Aug 31, 2021
6b74b40
chore: remove the only flag in nav test
Aug 31, 2021
94935a9
fix: lint errors
ChitlangeSahas Aug 31, 2021
43c336f
fix: flows test
ChitlangeSahas Aug 31, 2021
d5e07b9
fix: explorerVisualizations.test
ChitlangeSahas Aug 31, 2021
6067b51
chore: fix variables test by adding scroll into view for label creation
Aug 31, 2021
eb1292d
Merge branch 'install_clockface_beta' of github.com:influxdata/ui int…
Aug 31, 2021
5d3d112
chore: fix test in variables by adding force true to navigation item …
Aug 31, 2021
2f25509
fix: dashboardsIndex.test.ts
ChitlangeSahas Aug 31, 2021
e99acf7
Merge remote-tracking branch 'origin/install_clockface_beta' into ins…
ChitlangeSahas Aug 31, 2021
90419d9
fix: explorer.test.ts
ChitlangeSahas Aug 31, 2021
c45ca9e
fix: explorer.test.ts remove only
ChitlangeSahas Aug 31, 2021
9da01b6
fix: explorer.test.ts rename and remove second query
ChitlangeSahas Aug 31, 2021
635b0f6
chore: fix annotations test by making cypress press enter after typin…
Sep 1, 2021
a9494b5
fix: dashboardsRefresh.test.ts
ChitlangeSahas Sep 1, 2021
3ae2f75
fix: dashboardsRefresh.test.ts
ChitlangeSahas Sep 1, 2021
83c75a7
fix: legends.test.ts
ChitlangeSahas Sep 1, 2021
91c3a69
fix: prettier
ChitlangeSahas Sep 1, 2021
491525a
chore: fix dashboard views test
Sep 1, 2021
dedae49
fix: dashboardsRefresh.test.ts
ChitlangeSahas Sep 1, 2021
4944c8c
Merge remote-tracking branch 'origin/install_clockface_beta' into ins…
ChitlangeSahas Sep 1, 2021
6bb56d1
chore: update to new beta version which has the customFocus prop on d…
Sep 1, 2021
8d242b8
fix: simpleTable tests
ChitlangeSahas Sep 2, 2021
49b80ba
fix: prettier
ChitlangeSahas Sep 2, 2021
9b803c7
fix: more tests
ChitlangeSahas Sep 2, 2021
9e25cb4
chore: fix autorefresh tests by adding keyboard enter listening logic…
Sep 2, 2021
d5a6ca2
remove .only from test
Sep 2, 2021
5ef85cd
fix: queryBuilder.test.ts and package.json fix remocal script
ChitlangeSahas Sep 2, 2021
1c3a63f
fix: queryBuilder.test.ts for firefox
ChitlangeSahas Sep 2, 2021
10f5f88
chore: add html for to toggle label to make it functional and pass a …
Sep 2, 2021
d218c89
fix: lint
ChitlangeSahas Sep 2, 2021
ff13d64
chore: fix test by getting the child element rather than clickiong on…
Sep 2, 2021
430cab3
Merge branch 'install_clockface_beta' of github.com:influxdata/ui int…
Sep 2, 2021
9a1e4d3
chore: fix prettier issue
Sep 2, 2021
824574b
Merge branch 'master' into install_clockface_beta
Sep 3, 2021
f181026
fix: lint issue
ChitlangeSahas Sep 3, 2021
7febe16
fix: prettier
ChitlangeSahas Sep 3, 2021
30819dd
changing how onboarding test checks button text
Sep 3, 2021
f90adf8
Merge branch 'install_clockface_beta' of github.com:influxdata/ui int…
Sep 3, 2021
789eaa2
chore: fixing the rest of onboarding test by changing how we check te…
Sep 3, 2021
3ce23f7
chore: fixing the rest of onboarding test by changing how we check te…
Sep 3, 2021
ccbe4fa
refactor: nav test variable name
ChitlangeSahas Sep 3, 2021
8ffdc2c
refactor: DurationInput.tsx evt
ChitlangeSahas Sep 3, 2021
6b89202
chore: prettier
ChitlangeSahas Sep 3, 2021
57dc0c5
Merge branch 'install_clockface_beta' of github.com:influxdata/ui int…
Sep 3, 2021
1708760
refactor: use cy.contains instead of selecting element in dom
Sep 3, 2021
8e76c59
refactor: use .contains instead of element manipulation for onboardin…
Sep 3, 2021
2fba49d
refactor: add custom command for clicking nav items
Sep 3, 2021
d42a3b6
refactor: use custom navbar click command
Sep 3, 2021
8c8c9f2
chore: add comment
ChitlangeSahas Sep 4, 2021
a877f6f
chore: move line above comment
ChitlangeSahas Sep 4, 2021
3da5ca8
fix: try flows test
ChitlangeSahas Sep 4, 2021
090f8d4
chore: prettier
ChitlangeSahas Sep 4, 2021
3fcf9b4
fix: try a viewport size globally
ChitlangeSahas Sep 4, 2021
77ee717
Merge branch 'clockface_beta_master' into install_clockface_beta
ChitlangeSahas Sep 7, 2021
4ef45c6
fix: add new line to annotationSetup
ChitlangeSahas Sep 7, 2021
481649c
fix: rename customFocus to disableAutoFocus
ChitlangeSahas Sep 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@
"www.google-analytics.com",
"www.googletagmanager.com",
"www.honeybadger.io"
]
],
"viewportWidth": 1200,
"viewportHeight": 1000
}
47 changes: 15 additions & 32 deletions cypress/e2e/oss/onboarding.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,12 @@ describe('Onboarding', () => {

cy.getByTestID('next').should('be.disabled')

cy.getByTestID('next')
.children('.cf-button--label')
.contains('Continue')
cy.getByTestID('next').contains('CONTINUE', {matchCase: false})

// Input fields
cy.fillInOSSLoginFormWithDefaults()

cy.getByTestID('next')
.children('.cf-button--label')
.contains('Continue')
cy.getByTestID('next').contains('CONTINUE', {matchCase: false})

cy.getByTestID('next')
.should('be.enabled')
Expand Down Expand Up @@ -184,17 +180,15 @@ describe('Onboarding', () => {

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.get<string>('@defaultPassword').then((defaultPassword: string) => {
cy.getByTestID('input-field--password').type(defaultPassword)
})

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.getByTestID('input-field--password-chk').type('drowssap')

Expand All @@ -217,8 +211,7 @@ describe('Onboarding', () => {

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.get<string>('@defaultOrg').then((defaultOrg: string) => {
cy.getByTestID('input-field--orgname').type(defaultOrg)
Expand All @@ -228,8 +221,7 @@ describe('Onboarding', () => {

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.get<string>('@defaultPassword').then((defaultPassword: string) => {
cy.getByTestID('input-field--password')
Expand All @@ -244,25 +236,22 @@ describe('Onboarding', () => {

cy.getByTestID('next')
.should('be.enabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

// check cleared username
cy.getByTestID('input-field--username').clear()

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.get<string>('@defaultUser').then((defaultUser: string) => {
cy.getByTestID('input-field--username').type(defaultUser)
})

cy.getByTestID('next')
.should('be.enabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

// check cleared password
cy.getByTestID('input-field--password').clear()
Expand All @@ -274,8 +263,7 @@ describe('Onboarding', () => {

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.get<string>('@defaultPassword').then((defaultPassword: string) => {
cy.getByTestID('input-field--password')
Expand All @@ -289,40 +277,35 @@ describe('Onboarding', () => {

cy.getByTestID('next')
.should('be.enabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

// check cleared org name
cy.getByTestID('input-field--orgname').clear()

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.get<string>('@defaultOrg').then((defaultOrg: string) => {
cy.getByTestID('input-field--orgname').type(defaultOrg)
})

cy.getByTestID('next')
.should('be.enabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

// check cleared bucket name
cy.getByTestID('input-field--bucketname').clear()

cy.getByTestID('next')
.should('be.disabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})

cy.getByTestID('input-field--bucketname').type(defaultBucket)
})

cy.getByTestID('next')
.should('be.enabled')
.children('.cf-button--label')
.contains('Continue')
.contains('CONTINUE', {matchCase: false})
})
})
4 changes: 2 additions & 2 deletions cypress/e2e/shared/dashboardsIndex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ describe('Dashboards', () => {

// visit another page
cy.getByTestID('tree-nav').then(() => {
cy.contains('Settings').click()
cy.contains('Settings').click({force: true})
cy.contains(
"Looks like there aren't any Variables, why not create one?"
)
// return to dashboards page
cy.contains('Boards').click()
cy.contains('Dashboards').click()
})

// assert dashboard order remains the same
Expand Down
35 changes: 21 additions & 14 deletions cypress/e2e/shared/dashboardsRefresh.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('page-title').click()
cy.getByTestID('renamable-page-title--input')
.clear()
.type('blah')
.type('blah{enter}')
cy.getByTestID('save-cell--button').click()
})
})
Expand All @@ -74,7 +74,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('auto-refresh-input')
.clear()
.type('2s')
cy.getByTestID('refresh-form-activate-button').click()
cy.getByTestID('refresh-form-activate-button').click({force: true})
cy.wait('@refreshQuery')
cy.getByTestID('enable-auto-refresh-button').click()
// Wait the duration we'd expect on the next query to ensure stopping via the button actually stops the process. The fail means the request didn't run, which is what we want
Expand All @@ -92,6 +92,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('auto-refresh-input')
.clear()
.type('4s')
.type('{enter}')
cy.getByTestID('timerange-popover-button').click()
cy.getByTestID('timerange-popover--dialog').within(() => {
cy.getByTestID('timerange--input')
Expand Down Expand Up @@ -120,6 +121,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('auto-refresh-input')
.clear()
.type('2s')
.type('{enter}')
cy.getByTestID('timerange-popover-button').click()
cy.getByTestID('timerange-popover--dialog').within(() => {
cy.getByTestID('timerange--input')
Expand Down Expand Up @@ -155,15 +157,20 @@ describe('Dashboard refresh', () => {
cy.visit(routeToReturnTo)
cy.wait('@refreshQuery')
cy.wait(5000)
cy.getByTestID('enable-auto-refresh-button').then(el => {
expect(el[0].innerText).to.equal('Enable Auto Refresh')
})
cy.getByTestID(
'enable-auto-refresh-button'
).contains('ENABLE AUTO REFRESH', {matchCase: false})
})
it('can timeout on a preset inactivity timeout', done => {
cy.getByTestID(
'enable-auto-refresh-button'
).contains('ENABLE AUTO REFRESH', {matchCase: false})

cy.getByTestID('enable-auto-refresh-button').click()
cy.getByTestID('auto-refresh-input')
.clear()
.type('3s')
.type('{enter}')
cy.getByTestID('timerange-popover-button').click()
cy.getByTestID('timerange-popover--dialog').within(() => {
cy.getByTestID('timerange--input')
Expand All @@ -188,9 +195,9 @@ describe('Dashboard refresh', () => {
})

cy.wait(3100)
cy.getByTestID('enable-auto-refresh-button').then(el => {
expect(el[0].innerText).to.equal('Enable Auto Refresh')
})
cy.getByTestID(
'enable-auto-refresh-button'
).contains('ENABLE AUTO REFRESH', {matchCase: false})
cy.getByTestID('notification-success--children')
.children()
.should(
Expand Down Expand Up @@ -257,7 +264,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('page-title').click()
cy.getByTestID('renamable-page-title--input')
.clear()
.type('blah')
.type('blah{enter}')
cy.getByTestID('save-cell--button').click()
})

Expand Down Expand Up @@ -296,7 +303,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('auto-refresh-input')
.clear()
.type('2s')
cy.getByTestID('refresh-form-activate-button').click()
cy.getByTestID('refresh-form-activate-button').click({force: true})
cy.wait('@secondCellQuery')
cy.wait('@firstCellQuery')

Expand Down Expand Up @@ -356,7 +363,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('page-title').click()
cy.getByTestID('renamable-page-title--input')
.clear()
.type('blah')
.type('blah{enter}')
cy.getByTestID('save-cell--button').click()
})

Expand Down Expand Up @@ -394,7 +401,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('auto-refresh-input')
.clear()
.type('2s')
cy.getByTestID('refresh-form-activate-button').click()
cy.getByTestID('refresh-form-activate-button').click({force: true})

cy.wait('@secondCellQuery')
cy.getByTestID('cell blah').within(() => {
Expand Down Expand Up @@ -454,7 +461,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('page-title').click()
cy.getByTestID('renamable-page-title--input')
.clear()
.type('blah')
.type('blah{enter}')
cy.getByTestID('save-cell--button').click()
})

Expand Down Expand Up @@ -540,7 +547,7 @@ describe('Dashboard refresh', () => {
cy.getByTestID('page-title').click()
cy.getByTestID('renamable-page-title--input')
.clear()
.type('blah')
.type('blah{enter}')
cy.getByTestID('save-cell--button').click()
})

Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/shared/dashboardsView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe('Dashboard', () => {
cy.getByTestID('renamable-page-title--input')
.clear()
.type(xyCellName)
.type('{enter}')
cy.getByTestID('save-cell--button').click()
})

Expand Down Expand Up @@ -1284,7 +1285,7 @@ csv.from(csv: data) |> filter(fn: (r) => r.bucket == v.bucketsCSV)`
cy.getByTestID('page-title').click()
cy.getByTestID('renamable-page-title--input')
.clear()
.type('blah')
.type('blah{enter}')
cy.getByTestID('save-cell--button').click()
})
cy.getByTestID('cell-context--toggle')
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/shared/explorer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe('DataExplorer', () => {
})
cy.contains('Submit').click()
cy.get('.cf-tree-nav--toggle').click()
cy.getByTestID('nav-item-load-data').click()
// Can't use the testID to select this nav item because Clockface is silly and uses the same testID twice
// Issue: https://github.com/influxdata/clockface/issues/539
cy.get('.cf-tree-nav--sub-item-label')
Expand Down Expand Up @@ -646,7 +647,7 @@ describe('DataExplorer', () => {
// rename the first tab
cy.get('.query-tab')
.first()
.trigger('contextmenu')
.trigger('contextmenu', {force: true})
cy.getByTestID('right-click--edit-tab').click()
cy.getByTestID('edit-query-name').type('NewName{enter}')
cy.get('.query-tab')
Expand Down
4 changes: 3 additions & 1 deletion cypress/e2e/shared/flows.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ describe('Flows', () => {
cy.getByTestID('resource-editable-name').click()

// visualizations should exist
cy.getByTestID('giraffe-inner-plot').should('be.visible')
cy.getByTestID('giraffe-inner-plot')
.scrollIntoView()
.should('be.visible')
})
})
2 changes: 1 addition & 1 deletion cypress/e2e/shared/legends.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ describe('Legends', () => {
cy.getByTestID('overlay').within(() => {
cy.getByTestID('page-header')
.click()
.type(cellName)
.type(cellName + '{enter}')
})

// Without submitting the query, save it to a dashboard
Expand Down
Loading