-
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.
Merge pull request #3192 from MartaWilliams/3189-autotests-templates-…
…salts-and-solvents Autotest: #3189 Templates - Salts and Solvents
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
...totests/tests/Templates/Salts-and-Solvents/check-new-salt-or-solvent-is-replacing.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,48 @@ | ||
import { test } from '@playwright/test'; | ||
import { | ||
selectAtomInToolbar, | ||
AtomButton, | ||
pressButton, | ||
selectSaltsAndSolvents, | ||
SaltsAndSolvents, | ||
clickInTheMiddleOfTheScreen, | ||
takeEditorScreenshot, | ||
STRUCTURE_LIBRARY_BUTTON_NAME, | ||
} from '@utils'; | ||
|
||
test.describe('Open Ketcher', () => { | ||
test.beforeEach(async ({ page }) => { | ||
await page.goto(''); | ||
}); | ||
|
||
test('Verify if the new Salt or Solvent is replacing old one', async ({ | ||
page, | ||
}) => { | ||
/* | ||
Test case: EPMLSOPKET-12972 - 'Check that new Salt or Solvent is replacing the previously added one' | ||
*/ | ||
await pressButton(page, STRUCTURE_LIBRARY_BUTTON_NAME); | ||
await page.getByRole('tab', { name: 'Salts and Solvents' }).click(); | ||
await selectSaltsAndSolvents(SaltsAndSolvents.AceticAnhydride, page); | ||
await clickInTheMiddleOfTheScreen(page); | ||
await takeEditorScreenshot(page); | ||
|
||
await pressButton(page, STRUCTURE_LIBRARY_BUTTON_NAME); | ||
await page.getByRole('tab', { name: 'Salts and Solvents' }).click(); | ||
await selectSaltsAndSolvents(SaltsAndSolvents.AceticAcid, page); | ||
await clickInTheMiddleOfTheScreen(page); | ||
await takeEditorScreenshot(page); | ||
}); | ||
|
||
test('Verify if Methan Sulphonic Acid replace the Nitrogen atom', async ({ | ||
page, | ||
}) => { | ||
await selectAtomInToolbar(AtomButton.Nitrogen, page); | ||
await clickInTheMiddleOfTheScreen(page); | ||
|
||
await pressButton(page, STRUCTURE_LIBRARY_BUTTON_NAME); | ||
await page.getByRole('tab', { name: 'Salts and Solvents' }).click(); | ||
await selectSaltsAndSolvents(SaltsAndSolvents.MethaneSulphonicAcid, page); | ||
await clickInTheMiddleOfTheScreen(page); | ||
}); | ||
}); |
Binary file added
BIN
+12.3 KB
...her-Verify-if-the-new-Salt-or-Solvent-is-replacing-old-one-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
+9.77 KB
...her-Verify-if-the-new-Salt-or-Solvent-is-replacing-old-one-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.