Skip to content

Commit

Permalink
Remove leftover in ui test (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet authored Nov 7, 2024
1 parent 950112d commit 1f21f30
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ const exposeDepsJs = (deps: Record<string, (...args: any) => any>): string => {
.join('\n');
};

// The function running in browser context to get a plugin.
/**
* The function running in browser context to get a plugin.
*
* This function does the same as the equivalent in InPage galata helper, without the
* constraint on the plugin id.
*/
const getPlugin = (pluginId: string): Promise<any> => {
return new Promise((resolve, reject) => {
const app = window.jupyterapp as any;
Expand Down Expand Up @@ -309,10 +314,8 @@ test('should use properties from autocompletion object', async ({ page }) => {
});

test('single autocompletion should be the default', async ({ page }) => {
await page.pause();
await page.evaluate(
async options => {
console.log('YAYAYAYA');
const registry = await window.getPlugin(
'jupyterlab-collaborative-chat-extension:autocompletionRegistry'
);
Expand Down

0 comments on commit 1f21f30

Please sign in to comment.