|
24 | 24 | This test suite is dedicated to tests which verify the basic operations surrounding Notebooks.
|
25 | 25 | */
|
26 | 26 |
|
27 |
| -import { createDomainObjectWithDefaults } from '../../../../appActions.js'; |
28 | 27 | import { expect, test } from '../../../../pluginFixtures.js';
|
29 | 28 |
|
30 |
| -const NOTEBOOK_NAME = 'Notebook'; |
31 |
| - |
32 | 29 | test.describe('Snapshot Menu tests', () => {
|
33 | 30 | test.fixme(
|
34 | 31 | 'When no default notebook is selected, Snapshot Menu dropdown should only have a single option',
|
@@ -90,27 +87,26 @@ test.describe('Snapshot Container tests', () => {
|
90 | 87 | await page.getByRole('menuitem', { name: 'Save to Notebook Snapshots' }).click();
|
91 | 88 | await page.getByLabel('Show Snapshots').click();
|
92 | 89 | });
|
93 |
| - test.only('A snapshot can be Quick Viewed from Container with 3 dot action menu', async ({ |
94 |
| - page |
95 |
| - }) => { |
| 90 | + test('A snapshot can be Quick Viewed from Container with 3 dot action menu', async ({ page }) => { |
96 | 91 | await page.locator('.c-snapshot.c-ne__embed').first().getByTitle('More actions').click();
|
97 | 92 | await page.getByRole('menuitem', { name: 'Quick View' }).click();
|
98 | 93 | await expect(page.locator('.c-overlay__outer')).toBeVisible();
|
99 | 94 | });
|
100 |
| - test('A snapshot can be Viewed, Annotated, display deleted, and saved from Container with 3 dot action menu', async ({ |
101 |
| - page |
102 |
| - }) => { |
103 |
| - await page.locator('.c-snapshot.c-ne__embed').first().getByTitle('More actions').click(); |
104 |
| - await page.getByRole('menuitem', { name: ' View Snapshot' }).click(); |
105 |
| - await expect(page.locator('.c-overlay__outer')).toBeVisible(); |
106 |
| - await page.getByTitle('Annotate').click(); |
107 |
| - await expect(page.locator('#snap-annotation-canvas')).toBeVisible(); |
108 |
| - await page.getByRole('button', { name: '' }).click(); |
109 |
| - // await expect(page.locator('#snap-annotation-canvas')).not.toBeVisible(); |
110 |
| - await page.getByRole('button', { name: 'Save' }).click(); |
111 |
| - await page.getByRole('button', { name: 'Done' }).click(); |
112 |
| - //await expect(await page.locator) |
113 |
| - }); |
| 95 | + test.fixme( |
| 96 | + 'A snapshot can be Viewed, Annotated, display deleted, and saved from Container with 3 dot action menu', |
| 97 | + async ({ page }) => { |
| 98 | + await page.locator('.c-snapshot.c-ne__embed').first().getByTitle('More actions').click(); |
| 99 | + await page.getByRole('menuitem', { name: ' View Snapshot' }).click(); |
| 100 | + await expect(page.locator('.c-overlay__outer')).toBeVisible(); |
| 101 | + await page.getByTitle('Annotate').click(); |
| 102 | + await expect(page.locator('#snap-annotation-canvas')).toBeVisible(); |
| 103 | + await page.getByRole('button', { name: '' }).click(); |
| 104 | + // await expect(page.locator('#snap-annotation-canvas')).not.toBeVisible(); |
| 105 | + await page.getByRole('button', { name: 'Save' }).click(); |
| 106 | + await page.getByRole('button', { name: 'Done' }).click(); |
| 107 | + //await expect(await page.locator) |
| 108 | + } |
| 109 | + ); |
114 | 110 | test.fixme('5 Snapshots can be added to a container', async ({ page }) => {});
|
115 | 111 | test.fixme(
|
116 | 112 | '5 Snapshots can be added to a container and Deleted with Delete All action',
|
|
0 commit comments