Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autotests: Refactor mol-files-export-import-query-features.spec.ts #6277

Open
AlexeyGirin opened this issue Jan 14, 2025 · 0 comments
Open
Labels
Autotests refactor Code refactoring, without changing the functionality
Milestone

Comments

@AlexeyGirin
Copy link
Collaborator

Tests in mol-files-export-import-query-features.spec.ts contains lots of duplicate code like:

    await selectTopPanelButton(TopPanelButton.Save, page);
    await clickOnFileFormatDropdown(page);
    await page.getByTestId('SDF V2000-option').click();

    const sdfFileV2000Expected = page
      .getByTestId('sdf-preview-area-text')
      .inputValue();
    //  Save it to test-data if no file in where
    await saveToFile(
      'SDF/Query-Feature/Chirality-expected.sdf',
      await sdfFileV2000Expected,
    );
    await pressButton(page, 'Cancel');

Consider usage of verifyFileExport function (extend its functionality if needed)

@AlexeyGirin AlexeyGirin added refactor Code refactoring, without changing the functionality Autotests labels Jan 14, 2025
@AlexeyGirin AlexeyGirin added this to the Autotests milestone Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Autotests refactor Code refactoring, without changing the functionality
Projects
None yet
Development

No branches or pull requests

1 participant