Skip to content

Commit

Permalink
#5152 -- autotests updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Vialov committed Aug 26, 2024
1 parent 2dfcb8f commit 9da1808
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: “IUPAC style” in Label display at stereogenic centers is selected by default.
*/
const deltaX = 0;
const deltaY = 50;
const deltaY = 100;
await selectTopPanelButton(TopPanelButton.Settings, page);
await page.getByText('Stereochemistry', { exact: true }).click();
await page.mouse.wheel(deltaX, deltaY);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ async function setAtomAndBondSettings(page: Page) {
.locator('fieldset')
.filter({ hasText: 'Aromatic Bonds as' })
.getByRole('textbox')
.nth(1)
.nth(2)
.click();
await page
.locator('fieldset')
.filter({ hasText: 'Aromatic Bonds as' })
.getByRole('textbox')
.nth(1)
.nth(2)
.fill('05');
await page.getByTestId('OK').click();
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ import {

async function generalDefaultSettings(page: Page) {
await selectTopPanelButton(TopPanelButton.Settings, page);
const deltaX = 0;
const deltaY = 150;
const anyX = 638;
const anyY = 524;
await page.mouse.move(anyX, anyY);
await page.mouse.wheel(deltaX, deltaY);
await page.getByTestId('General-accordion').click();
}

async function resetSelectToolOff(page: Page) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ const Accordion = ({ tabs, className, changedGroups }): React.ReactElement => {
);
};

console.log(tabs);

return (
<div className={clsx(classes.accordionWrapper, className)}>
{tabs.map(({ label, content, key }) => {
Expand All @@ -44,6 +46,7 @@ const Accordion = ({ tabs, className, changedGroups }): React.ReactElement => {
<div
onClick={handleAccordionChange(label)}
className={classes.accordionSummaryWrapper}
data-testid={`${label}-accordion`}
>
<div className={classes.accordionSummary}>
<Icon
Expand Down

0 comments on commit 9da1808

Please sign in to comment.