Commit c441dcc2 authored by Noel Gordon's avatar Noel Gordon Committed by Commit Bot

Add a QuickView openQuickViewDrive browser test

Add coverage for Drive to the openQuickView<VolumeType> test group.

Test: browser_test --gtest_filter="QuickView/FilesApp*"
Bug: 836254
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ibf081b03ebcb069274c83d00da1d2703649bb04d
Reviewed-on: https://chromium-review.googlesource.com/1098913Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Reviewed-by: default avatarJoel Hockey <joelhockey@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567228}
parent df4cf9e1
...@@ -222,6 +222,7 @@ WRAPPED_INSTANTIATE_TEST_CASE_P( ...@@ -222,6 +222,7 @@ WRAPPED_INSTANTIATE_TEST_CASE_P(
::testing::Values(TestCase("openQuickView"), ::testing::Values(TestCase("openQuickView"),
TestCase("openQuickView").InGuestMode(), TestCase("openQuickView").InGuestMode(),
TestCase("openQuickView").TabletMode(), TestCase("openQuickView").TabletMode(),
TestCase("openQuickViewDrive"),
TestCase("openQuickViewUsb"), TestCase("openQuickViewUsb"),
TestCase("closeQuickView"))); TestCase("closeQuickView")));
......
...@@ -120,6 +120,29 @@ testcase.closeQuickView = function() { ...@@ -120,6 +120,29 @@ testcase.closeQuickView = function() {
]); ]);
}; };
/**
* Tests opening Quick View on a Drive file.
*/
testcase.openQuickViewDrive = function() {
let appId;
StepsRunner.run([
// Open Files app on Drive.
function() {
setupAndWaitUntilReady(null, RootPath.DRIVE, this.next);
},
// Open a file in Quick View.
function(results) {
appId = results.windowId;
const openSteps = openQuickViewSteps(appId, ENTRIES.hello.nameText);
StepsRunner.run(openSteps).then(this.next);
},
function() {
checkIfNoErrorsOccured(this.next);
},
]);
};
/** /**
* Tests opening Quick View on a USB file. * Tests opening Quick View on a USB file.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment