Skip to content

Commit

Permalink
#3385 - adding test for single bond
Browse files Browse the repository at this point in the history
  • Loading branch information
Gayane Chilingaryan committed Oct 18, 2023
1 parent d74c9e3 commit 1ccf13b
Showing 1 changed file with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ test.describe('Polymer Bond Tool', () => {
await chem2.hover();
await page.mouse.up();
});
});

test.describe('Signle Bond Tool', () => {
test.beforeEach(async ({ page }) => {
await waitForPageInit(page);
await turnOnMacromoleculesEditor(page);
});
test('Select monomers and pass a bond', async ({ page }) => {
/*
Test case: Macro: #3385 - Overlapping of bonds between 2 monomers
Expand All @@ -100,11 +106,22 @@ test.describe('Polymer Bond Tool', () => {
*/
const MONOMER_NAME = 'Tza___3-thiazolylalanine';
const MONOMER_ALIAS = 'Tza';
await addMonomerToCanvas(page, MONOMER_NAME, 300, 300);
await addMonomerToCanvas(page, MONOMER_NAME, 500, 500);
const peptides = await page.getByText(MONOMER_ALIAS).locator('..');
const peptide1 = peptides.nth(0);
const peptide2 = peptides.nth(1);
const peptide1 = await addMonomerToCanvas(
page,
MONOMER_NAME,
MONOMER_ALIAS,
300,
300,
0,
);
const peptide2 = await addMonomerToCanvas(
page,
MONOMER_NAME,
MONOMER_ALIAS,
400,
400,
1,
);
await selectSingleBondTool(page);
await bondTwoMonomers(page, peptide1, peptide2);
await bondTwoMonomers(page, peptide2, peptide1);
Expand Down

0 comments on commit 1ccf13b

Please sign in to comment.