Skip to content

Commit d6ea219

Browse files
fix: remove the old manual refresh test in data explorer (#3717)
* test: remove the manual refresh test in data explorer * chore: remove unused function makeGraphSnapshot
1 parent d229d65 commit d6ea219

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

cypress/e2e/shared/explorer.test.ts

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Organization} from '../../../src/types'
2-
import {points, makeGraphSnapshot} from '../../support/commands'
2+
import {points} from '../../support/commands'
33
import {
44
FROM,
55
RANGE,
@@ -632,30 +632,6 @@ describe('DataExplorer', () => {
632632
})
633633
})
634634

635-
describe('refresh', () => {
636-
beforeEach(() => {
637-
cy.writeData(points(20))
638-
639-
cy.getByTestID(`selector-list m`).click()
640-
cy.getByTestID('time-machine-submit-button').click()
641-
642-
// select short time period to ensure graph changes after short time
643-
cy.getByTestID('timerange-dropdown').click()
644-
cy.getByTestID('dropdown-item-past5m').click()
645-
})
646-
647-
it('manual refresh', () => {
648-
const snapshot = makeGraphSnapshot()
649-
650-
// graph will slightly move
651-
cy.wait(200)
652-
cy.get('.autorefresh-dropdown--pause').click()
653-
654-
// not actually same as (see the false as the second arg)
655-
makeGraphSnapshot().shouldBeSameAs(snapshot, false)
656-
})
657-
})
658-
659635
describe('saving', () => {
660636
beforeEach(() => {
661637
cy.writeData(points(10))

0 commit comments

Comments
 (0)