-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3914 Add support for opening structures in CDX format embedded into …
…MS PowerPoint fix concurrent generateImageAsBase64 requests, add tests
- Loading branch information
Showing
11 changed files
with
59 additions
and
11 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
ketcher-autotests/tests/File-Management/Open-And-Save-Files/PPTX-Files/pptx-files.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { test } from '@playwright/test'; | ||
import { | ||
waitForPageInit, | ||
selectTopPanelButton, | ||
TopPanelButton, | ||
openFile, | ||
takeEditorScreenshot, | ||
} from '@utils'; | ||
|
||
test.describe.only('PPTX files', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await waitForPageInit(page); | ||
}); | ||
|
||
test('open pptx file', async ({ page }) => { | ||
await selectTopPanelButton(TopPanelButton.Open, page); | ||
await openFile('PPTX/pptx-with-chem-draw.pptx', page); | ||
await takeEditorScreenshot(page); | ||
await page.getByText('Structure 2').click(); | ||
await takeEditorScreenshot(page); | ||
}); | ||
|
||
test('open empty pptx file', async ({ page }) => { | ||
await selectTopPanelButton(TopPanelButton.Open, page); | ||
await openFile('PPTX/pptx-empty.pptx', page); | ||
await takeEditorScreenshot(page); | ||
}); | ||
}); |
Binary file added
BIN
+32.1 KB
...tx-files.spec.ts-snapshots/PPTX-files-open-empty-pptx-file-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.7 KB
...les/pptx-files.spec.ts-snapshots/PPTX-files-open-pptx-file-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+57.2 KB
...les/pptx-files.spec.ts-snapshots/PPTX-files-open-pptx-file-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters