We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02a164d commit f6b65e3Copy full SHA for f6b65e3
ui-tests/test/menus.spec.ts
@@ -25,7 +25,7 @@ const MENU_PATHS = [
25
test.use({ autoGoto: false });
26
27
test.describe('Notebook Menus', () => {
28
- test.beforeEach(async ({ page, tmpPath }) => {
+ test.beforeAll(async ({ page, tmpPath }) => {
29
await page.contents.uploadFile(
30
path.resolve(__dirname, `./notebooks/${NOTEBOOK}`),
31
`${tmpPath}/${NOTEBOOK}`
@@ -40,7 +40,8 @@ test.describe('Notebook Menus', () => {
40
41
const imageName = `opened-menu-${menuPath.replace(/>/g, '-')}.png`;
42
const menu = await page.menu.getOpenMenu();
43
- expect(await menu.screenshot()).toMatchSnapshot(imageName.toLowerCase());
+ expect(menu).toBeDefined();
44
+ expect(await menu!.screenshot()).toMatchSnapshot(imageName.toLowerCase());
45
});
46
47
0 commit comments