disable v2 tests temporarily (#20603)

This commit is contained in:
Barbara Valdez
2022-09-13 20:45:12 -07:00
committed by GitHub
parent 620a84f92b
commit 6c7d4a2f6b

View File

@@ -690,20 +690,22 @@ describe('BooksTreeViewTests', function () {
'toc': '- title: Home\n url: /readme\n- title: Notebook1\n url: /notebook1\n- title: Notebook2\n url: /notebook2' 'toc': '- title: Home\n url: /readme\n- title: Notebook1\n url: /notebook1\n- title: Notebook2\n url: /notebook2'
} }
}, },
{ // Disable book v2 tests temporarily
it: 'v2', // Tracking the fix here https://github.com/microsoft/azuredatastudio/issues/20589
folderPaths: { // {
'configFile': path.join(rootFolderPath, '_config.yml'), // it: 'v2',
'tableofContentsFile': path.join(rootFolderPath, '_toc.yml'), // folderPaths: {
'notebook1File': path.join(rootFolderPath, 'notebook1.ipynb'), // 'configFile': path.join(rootFolderPath, '_config.yml'),
'notebook2File': path.join(rootFolderPath, 'notebook2.ipynb'), // 'tableofContentsFile': path.join(rootFolderPath, '_toc.yml'),
'markdownFile': path.join(rootFolderPath, 'readme.md') // 'notebook1File': path.join(rootFolderPath, 'notebook1.ipynb'),
}, // 'notebook2File': path.join(rootFolderPath, 'notebook2.ipynb'),
contents: { // 'markdownFile': path.join(rootFolderPath, 'readme.md')
'config': 'title: Test Book', // },
'toc': '- title: Home\n file: /readme\n- title: Notebook1\n file: /notebook1\n- title: Notebook2\n file: /notebook2' // contents: {
} // 'config': 'title: Test Book',
} // 'toc': '- title: Home\n file: /readme\n- title: Notebook1\n file: /notebook1\n- title: Notebook2\n file: /notebook2'
// }
// }
]; ];
runs.forEach(function (run) { runs.forEach(function (run) {
describe('BookTreeViewProvider.Commands on ' + run.it, function (): void { describe('BookTreeViewProvider.Commands on ' + run.it, function (): void {
@@ -768,8 +770,7 @@ describe('BooksTreeViewTests', function () {
should(executeCommandSpy.calledWith('markdown.showPreview')).be.true('openMarkdown should have called markdown.showPreview'); should(executeCommandSpy.calledWith('markdown.showPreview')).be.true('openMarkdown should have called markdown.showPreview');
}); });
// skip test for failing on CI runs. Tracking the fix here https://github.com/microsoft/azuredatastudio/issues/20589 it('should call showPreviewFile on openBook when showPreview flag is set', async () => {
it.skip('should call showPreviewFile on openBook when showPreview flag is set', async () => {
await bookTreeViewProvider.closeBook(bookTreeViewProvider.books[0].bookItems[0]); await bookTreeViewProvider.closeBook(bookTreeViewProvider.books[0].bookItems[0]);
let showPreviewSpy = sinon.spy(bookTreeViewProvider, 'showPreviewFile'); let showPreviewSpy = sinon.spy(bookTreeViewProvider, 'showPreviewFile');
@@ -778,8 +779,7 @@ describe('BooksTreeViewTests', function () {
should(showPreviewSpy.calledOnce).be.true('Should have called showPreviewFile.'); should(showPreviewSpy.calledOnce).be.true('Should have called showPreviewFile.');
}); });
// skip test for failing on CI runs. Tracking the fix here https://github.com/microsoft/azuredatastudio/issues/20589 it('should add book when bookPath contains special characters on openBook', async () => {
it.skip('should add book when bookPath contains special characters on openBook', async () => {
let rootFolderPath2 = path.join(os.tmpdir(), `BookTestData(1)_${uuid.v4()}`); let rootFolderPath2 = path.join(os.tmpdir(), `BookTestData(1)_${uuid.v4()}`);
let dataFolderPath2 = path.join(rootFolderPath2, '_data'); let dataFolderPath2 = path.join(rootFolderPath2, '_data');
let contentFolderPath2 = path.join(rootFolderPath2, 'content'); let contentFolderPath2 = path.join(rootFolderPath2, 'content');