Commit 3ea5fddd authored by Rachel Sugrono's avatar Rachel Sugrono Committed by Commit Bot

Fix a transfer.js test to work in step by step mode

The transferFromDownloadsToTeamDrivemyDriveContent was failing in step
by step mode. This is because it was getting the source files from the
wrong place. Change the test helper transferBetweenVolumes to read from
the correct source.

Bug: 1035220
Change-Id: Iec1ad334ee41b48a1d248dbaeb25d378342b9d85
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1972737
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarLuciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726283}
parent 65ab38b5
...@@ -118,10 +118,6 @@ async function transferBetweenVolumes(transferInfo) { ...@@ -118,10 +118,6 @@ async function transferBetweenVolumes(transferInfo) {
entry => entry.type !== EntryType.SHARED_DRIVE && entry => entry.type !== EntryType.SHARED_DRIVE &&
entry.teamDriveName === '')); entry.teamDriveName === ''));
} }
const myDriveContent =
TestEntryInfo.getExpectedRows(transferInfo.source.initialEntries.filter(
entry => entry.type !== EntryType.SHARED_DRIVE &&
entry.teamDriveName === ''));
let dstContents; let dstContents;
if (transferInfo.destination.isTeamDrive) { if (transferInfo.destination.isTeamDrive) {
...@@ -142,6 +138,8 @@ async function transferBetweenVolumes(transferInfo) { ...@@ -142,6 +138,8 @@ async function transferBetweenVolumes(transferInfo) {
SHARED_DRIVE_ENTRY_SET : SHARED_DRIVE_ENTRY_SET :
BASIC_DRIVE_ENTRY_SET; BASIC_DRIVE_ENTRY_SET;
const myDriveContent = TestEntryInfo.getExpectedRows(
driveFiles.filter(e => e.teamDriveName === '' && e.computerName === ''));
// Open files app. // Open files app.
const appId = const appId =
await setupAndWaitUntilReady(RootPath.DOWNLOADS, localFiles, driveFiles); await setupAndWaitUntilReady(RootPath.DOWNLOADS, localFiles, driveFiles);
......
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