fix(code/frontend): should not collapse folder after click a breadcrumb (#35458) (#35711)

This commit is contained in:
WangQianliang 2019-05-07 14:17:04 +08:00 committed by GitHub
parent 47139eaa8a
commit bcb2ad0141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,15 @@ export default function exploreRepositoryFunctonalTests({
expect(await testSubjects.exists('codeSourceViewer')).to.be(true);
});
// Click breadcrumb does not affect file tree
await testSubjects.click('codeFileBreadcrumb-src');
await retry.try(async () => {
expect(await testSubjects.exists('codeFileTreeNode-Directory-Icon-src-open')).ok();
expect(await testSubjects.exists('codeFileTreeNode-Directory-Icon-src-doc-open')).ok();
expect(await testSubjects.exists('codeFileTreeNode-Directory-Icon-test-closed')).ok();
expect(await testSubjects.exists('codeFileTreeNode-Directory-Icon-views-closed')).ok();
});
// open another folder
await testSubjects.click('codeFileTreeNode-Directory-src-doc');
await retry.tryForTime(5000, async () => {