Re-enable Dashboard time changes functional test. (#21323)

This commit is contained in:
CJ Cenizal 2018-07-27 14:20:43 -07:00 committed by GitHub
parent 393150def0
commit be6a266da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,15 +97,15 @@ export default function ({ getPageObjects }) {
// when it's opened. However, if the user then changes the time, navigates to visualize, then navigates
// back to dashboard, the overridden time should be preserved. The time is *only* reset on open, not
// during navigation or page refreshes.
// describe('time changes', function () {
// it('preserved during navigation', async function () {
// await PageObjects.header.setQuickTime('Today');
// await PageObjects.header.clickVisualize();
// await PageObjects.header.clickDashboard();
//
// const prettyPrint = await PageObjects.header.getPrettyDuration();
// expect(prettyPrint).to.equal('Today');
// });
// });
describe('time changes', function () {
it('preserved during navigation', async function () {
await PageObjects.header.setQuickTime('Today');
await PageObjects.header.clickVisualize();
await PageObjects.header.clickDashboard();
const prettyPrint = await PageObjects.header.getPrettyDuration();
expect(prettyPrint).to.equal('Today');
});
});
});
}