diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/CDXML-Files/cdxml-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/CDXML-Files/cdxml-files.spec.ts index 209768c2be..76e526da2e 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/CDXML-Files/cdxml-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/CDXML-Files/cdxml-files.spec.ts @@ -601,6 +601,7 @@ test.describe('Tests for API setMolecule/getMolecule', () => { await setReactionMarginSizeOptionUnit(page, 'px-option'); await setReactionMarginSizeValue(page, '7.8'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getCdxml(page); @@ -637,6 +638,7 @@ test.describe('Tests for API setMolecule/getMolecule', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getCdxml(page); diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Cml-files/cml-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Cml-files/cml-files.spec.ts index fca89f71b9..6d5707f120 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Cml-files/cml-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Cml-files/cml-files.spec.ts @@ -605,6 +605,7 @@ test.describe('CML files', () => { await setReactionMarginSizeOptionUnit(page, 'cm-option'); await setReactionMarginSizeValue(page, '1.8'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getCml(page); @@ -640,6 +641,7 @@ test.describe('CML files', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getCml(page); diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/KET-Files/ket-files-properties.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/KET-Files/ket-files-properties.spec.ts index 675f86d3e0..0808976edc 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/KET-Files/ket-files-properties.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/KET-Files/ket-files-properties.spec.ts @@ -192,6 +192,7 @@ test.describe('Ket files', () => { await setReactionMarginSizeOptionUnit(page, 'px-option'); await setReactionMarginSizeValue(page, '47.8'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getKet(page); @@ -225,6 +226,7 @@ test.describe('Ket files', () => { await setReactionMarginSizeOptionUnit(page, 'pt-option'); await setReactionMarginSizeValue(page, '7.8'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getKet(page); @@ -258,6 +260,7 @@ test.describe('Ket files', () => { await setReactionMarginSizeOptionUnit(page, 'cm-option'); await setReactionMarginSizeValue(page, '3.8'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getKet(page); @@ -291,6 +294,7 @@ test.describe('Ket files', () => { await setReactionMarginSizeOptionUnit(page, 'inch-option'); await setReactionMarginSizeValue(page, '7.8'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getKet(page); @@ -320,6 +324,7 @@ test.describe('Ket files', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const expectedFile = await getKet(page); diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/MOL-Files/mol-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/MOL-Files/mol-files.spec.ts index fcd379f2d0..8fc3099822 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/MOL-Files/mol-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/MOL-Files/mol-files.spec.ts @@ -973,6 +973,7 @@ test.describe('Open and Save file', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); @@ -1012,6 +1013,7 @@ test.describe('Open and Save file', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/PNG-Files/png-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/PNG-Files/png-files.spec.ts index 5f7a747670..b0a950454c 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/PNG-Files/png-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/PNG-Files/png-files.spec.ts @@ -169,6 +169,7 @@ test.describe('Saving in .png files', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); await clickOnSaveFileAndOpenDropdown(page); diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Rxn-Files/rxn-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Rxn-Files/rxn-files.spec.ts index 5de1f090ff..1a9d783390 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Rxn-Files/rxn-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/Rxn-Files/rxn-files.spec.ts @@ -1323,6 +1323,7 @@ test.describe('Tests for Open and Save RXN file operations', () => { await setReactionMarginSizeOptionUnit(page, 'px-option'); await setReactionMarginSizeValue(page, '47.8'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const METADATA_STRINGS_INDEXES = [2, 7, 34, 65, 100, 118]; @@ -1360,6 +1361,7 @@ test.describe('Tests for Open and Save RXN file operations', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const METADATA_STRINGS_INDEXES = [2, 7, 32, 54]; @@ -1397,6 +1399,7 @@ test.describe('Tests for Open and Save RXN file operations', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); const METADATA_STRINGS_INDEXES = [2, 7, 32, 54]; diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SDF-Files/sdf-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SDF-Files/sdf-files.spec.ts index 9a5c6fa57d..8860afcb15 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SDF-Files/sdf-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SDF-Files/sdf-files.spec.ts @@ -772,6 +772,7 @@ test('The ACS setting is applied, click on layout and it should be save to sdf 3 await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); @@ -814,6 +815,7 @@ test('The ACS setting is applied, click on layout and it should be save to sdf 2 await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); diff --git a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SVG_Files/svg-files.spec.ts b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SVG_Files/svg-files.spec.ts index 358de4d7ca..8503bc5c12 100644 --- a/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SVG_Files/svg-files.spec.ts +++ b/ketcher-autotests/tests/File-Management/Open-And-Save-Files/SVG_Files/svg-files.spec.ts @@ -130,6 +130,7 @@ test.describe('Saving in .svg files', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); await clickOnSaveFileAndOpenDropdown(page); diff --git a/ketcher-autotests/tests/Settings/ACS Style/acs-style-settings.spec.ts b/ketcher-autotests/tests/Settings/ACS Style/acs-style-settings.spec.ts index 82f2d9a1bf..ad8b75c31c 100644 --- a/ketcher-autotests/tests/Settings/ACS Style/acs-style-settings.spec.ts +++ b/ketcher-autotests/tests/Settings/ACS Style/acs-style-settings.spec.ts @@ -38,6 +38,7 @@ test.describe('ACS Style Settings', () => { await scrollToDownInSetting(page); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -53,6 +54,7 @@ test.describe('ACS Style Settings', () => { await openSettings(page); await pressButton(page, 'Set ACS Settings'); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); await openSettings(page); @@ -62,6 +64,7 @@ test.describe('ACS Style Settings', () => { await scrollToDownInSetting(page); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await takeEditorScreenshot(page); }); }); diff --git a/ketcher-autotests/tests/Settings/General/default-settings-verification.spec.ts b/ketcher-autotests/tests/Settings/General/default-settings-verification.spec.ts index f986ac5d5a..d1b1b202bd 100644 --- a/ketcher-autotests/tests/Settings/General/default-settings-verification.spec.ts +++ b/ketcher-autotests/tests/Settings/General/default-settings-verification.spec.ts @@ -572,6 +572,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -594,6 +595,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -616,6 +618,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -638,6 +641,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -660,6 +664,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -682,6 +687,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -704,6 +710,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -726,6 +733,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -749,6 +757,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -772,6 +781,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -795,6 +805,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -818,6 +829,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -840,6 +852,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -862,6 +875,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -884,6 +898,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); @@ -906,6 +921,7 @@ test.describe('General Settings', () => { await page.waitForTimeout(1000); await takeEditorScreenshot(page); await pressButton(page, 'Apply'); + await pressButton(page, 'OK'); await selectTopPanelButton(TopPanelButton.Layout, page); await takeEditorScreenshot(page); }); diff --git a/packages/ketcher-react/src/script/ui/views/modal/components/InfoModal/InfoModal.tsx b/packages/ketcher-react/src/script/ui/views/modal/components/InfoModal/InfoModal.tsx index 8469077521..b36fe493d5 100644 --- a/packages/ketcher-react/src/script/ui/views/modal/components/InfoModal/InfoModal.tsx +++ b/packages/ketcher-react/src/script/ui/views/modal/components/InfoModal/InfoModal.tsx @@ -28,7 +28,7 @@ function ErrorInfoModal(props) { const defaultCutCopyMessage = `This action is unavailable via menu. Instead, use shortcut to ${props.message}.`; - const headerContent =