Skip to content

Commit

Permalink
#3169 – renamed folders to common style
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitvex committed Sep 1, 2023
1 parent bdf1ece commit ebf47a2
Show file tree
Hide file tree
Showing 102 changed files with 10,881 additions and 1,537 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1963-inchi.txt',
'tests/test-data/TXT/1963-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -52,7 +52,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1967-inchi.txt',
'tests/test-data/TXT/1967-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -70,7 +70,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1968-inchi.txt',
'tests/test-data/TXT/1968-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -88,7 +88,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1969-inchi.txt',
'tests/test-data/TXT/1969-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -106,7 +106,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1970-inchi.txt',
'tests/test-data/TXT/1970-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -124,7 +124,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1971-inchi.txt',
'tests/test-data/TXT/1971-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -142,7 +142,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1974-inchi.txt',
'tests/test-data/TXT/1974-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -160,7 +160,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1975-inchi.txt',
'tests/test-data/TXT/1975-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -178,7 +178,7 @@ test.describe('', () => {
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1976-inchi.txt',
'tests/test-data/TXT/1976-inchi.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ the first one disappears. Couldn't reproduct manually.
// add first stucture from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1840225-mol-1.txt',
'tests/test-data/TXT/1840225-mol-1.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -78,7 +78,7 @@ the first one disappears. Couldn't reproduct manually.
// add first stucture from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1879938-rxn-1[1].txt',
'tests/test-data/TXT/1879938-rxn-1[1].txt',
page,
);
// add second structure from file to canvas
Expand All @@ -98,7 +98,7 @@ the first one disappears. Couldn't reproduct manually.
// add first stucture from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1837-inchi-1.txt',
'tests/test-data/TXT/1837-inchi-1.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -112,7 +112,7 @@ the first one disappears. Couldn't reproduct manually.
// add first stucture from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1837-inchi-2.txt',
'tests/test-data/TXT/1837-inchi-2.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand All @@ -126,7 +126,7 @@ the first one disappears. Couldn't reproduct manually.
// add first structure from clipboard to canvas
await selectTopPanelButton(TopPanelButton.Open, page);
await openFromFileViaClipboard(
'tests/test-data/Txt/1837-inchi-3.txt',
'tests/test-data/TXT/1837-inchi-3.txt',
page,
);
await clickInTheMiddleOfTheScreen(page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ test('Save file - Save *.ket file', async ({ page }) => {
);

const expectedFile = await getKet(page);
await saveToFile('Ket/ket-2934-to-compare-expected.ket', expectedFile);
await saveToFile('KET/ket-2934-to-compare-expected.ket', expectedFile);

const { fileExpected: ketFileExpected, file: ketFile } =
await receiveFileComparisonData({
page,
expectedFileName: 'tests/test-data/Ket/ket-2934-to-compare-expected.ket',
expectedFileName: 'tests/test-data/KET/ket-2934-to-compare-expected.ket',
});

expect(ketFile).toEqual(ketFileExpected);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ test.describe('SMILES files', () => {
Description: Structure is correctly opens from saved files. Keep only first reaction arrow
and keep all structures (all intermediate structures should be products and the arrow is replaced by a plus)
*/
await openFileAndAddToCanvas('Ket/two-arrows-and-plus.ket', page);
await openFileAndAddToCanvas('KET/two-arrows-and-plus.ket', page);
await getAndCompareSmiles(
page,
'tests/test-data/smiles-two-arrows-and-plus-expected.json',
Expand All @@ -300,7 +300,7 @@ test.describe('SMILES files', () => {
Description: Structure is not distorted. Reagent NH3 located above reaction arrow.
*/
await openFileAndAddToCanvas(
'Ket/benzene-arrow-benzene-reagent-nh3.ket',
'KET/benzene-arrow-benzene-reagent-nh3.ket',
page,
);
await getAndCompareSmiles(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test.describe('Indigo Tools - Calculate CIP Tool', () => {
Test case: EPMLSOPKET-1886
Description: The structure isn`t changed.
*/
await openFileAndAddToCanvas('Ket/chain.ket', page);
await openFileAndAddToCanvas('KET/chain.ket', page);
await selectTopPanelButton(TopPanelButton.Calculate, page);
});

Expand Down Expand Up @@ -356,15 +356,15 @@ test.describe('Indigo Tools - Calculate CIP Tool', () => {
await openFileAndAddToCanvas('structure-with-stereo-bonds.mol', page);
const expectedFile = await getKet(page);
await saveToFile(
'Ket/structure-with-stereo-bonds-expected.ket',
'KET/structure-with-stereo-bonds-expected.ket',
expectedFile,
);
await selectTopPanelButton(TopPanelButton.Calculate, page);
const { file: ketFile, fileExpected: ketFileExpected } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/Ket/structure-with-stereo-bonds-expected.ket',
'tests/test-data/KET/structure-with-stereo-bonds-expected.ket',
});

expect(ketFile).toEqual(ketFileExpected);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ test.describe('Calculated Values Tools', () => {
Description: The 'Calculated Values' modal window is opened,
the 'Chemical Formula' field contains 'C7H16' value.
*/
await openFileAndAddToCanvas('Ket/calculated-values-chain.ket', page);
await openFileAndAddToCanvas('KET/calculated-values-chain.ket', page);
await selectTopPanelButton(TopPanelButton.Calculated, page);
});

Expand Down Expand Up @@ -615,7 +615,7 @@ test.describe('Calculated Values Tools', () => {
*/
const xDelta = 500;
const yDelta = 800;
await openFileAndAddToCanvas('Ket/reaction-arrow.ket', page);
await openFileAndAddToCanvas('KET/reaction-arrow.ket', page);
const { x, y } = await getCoordinatesOfTheMiddleOfTheScreen(page);
await dragMouseTo(x - xDelta, y + yDelta, page);
await selectTopPanelButton(TopPanelButton.Calculated, page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ test.describe('Indigo Tools - Clean Tools', () => {
The Clean Up action is applied correctly and simultaneously
to the whole structure with stereolabels.
*/
await openFileAndAddToCanvas('Ket/stereolabels.ket', page);
await openFileAndAddToCanvas('KET/stereolabels.ket', page);

await selectTopPanelButton(TopPanelButton.Clean, page);
await delay(DELAY_IN_SECONDS.SEVEN);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
- the selected stereocenters have different stereo marks.
*/
await openFileAndAddToCanvas(
'Ket/different-marks-stereostructure.ket',
'KET/different-marks-stereostructure.ket',
page,
);
await selectLeftPanelButton(LeftPanelButton.Stereochemistry, page);
Expand Down Expand Up @@ -254,15 +254,15 @@ test.describe('Enhanced Stereochemistry Tool', () => {
All enhanced stereochemistry features are present after opening.
It's possible to edit the stereo marks assignment after opening the saved file.
*/
await openFileAndAddToCanvas('Ket/stereo-and-structure.ket', page);
await openFileAndAddToCanvas('KET/stereo-and-structure.ket', page);
const expectedFile = await getKet(page);
await saveToFile('Ket/stereo-and-structure-expected.ket', expectedFile);
await saveToFile('KET/stereo-and-structure-expected.ket', expectedFile);

const { fileExpected: ketFileExpected, file: ketFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/Ket/stereo-and-structure-expected.ket',
'tests/test-data/KET/stereo-and-structure-expected.ket',
});

expect(ketFile).toEqual(ketFileExpected);
Expand All @@ -281,15 +281,15 @@ test.describe('Enhanced Stereochemistry Tool', () => {
All enhanced stereochemistry features are present after opening.
It's possible to edit the stereo marks assignment after opening the saved file.
*/
await openFileAndAddToCanvas('Ket/stereo-or-structure.ket', page);
await openFileAndAddToCanvas('KET/stereo-or-structure.ket', page);
const expectedFile = await getKet(page);
await saveToFile('Ket/stereo-or-structure-expected.ket', expectedFile);
await saveToFile('KET/stereo-or-structure-expected.ket', expectedFile);

const { fileExpected: ketFileExpected, file: ketFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/Ket/stereo-or-structure-expected.ket',
'tests/test-data/KET/stereo-or-structure-expected.ket',
});

expect(ketFile).toEqual(ketFileExpected);
Expand All @@ -308,15 +308,15 @@ test.describe('Enhanced Stereochemistry Tool', () => {
All enhanced stereochemistry features are present after opening.
It's possible to edit the stereo marks assignment after opening the saved file.
*/
await openFileAndAddToCanvas('Ket/stereo-mixed-structure.ket', page);
await openFileAndAddToCanvas('KET/stereo-mixed-structure.ket', page);
const expectedFile = await getKet(page);
await saveToFile('Ket/stereo-mixed-structure-expected.ket', expectedFile);
await saveToFile('KET/stereo-mixed-structure-expected.ket', expectedFile);

const { fileExpected: ketFileExpected, file: ketFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/Ket/stereo-mixed-structure-expected.ket',
'tests/test-data/KET/stereo-mixed-structure-expected.ket',
});

expect(ketFile).toEqual(ketFileExpected);
Expand All @@ -339,13 +339,13 @@ test.describe('Enhanced Stereochemistry Tool', () => {
*/
await openFileAndAddToCanvas('mixed-and-stereomarks.ket', page);
const expectedFile = await getKet(page);
await saveToFile('Ket/mixed-and-stereomarks-expected.ket', expectedFile);
await saveToFile('KET/mixed-and-stereomarks-expected.ket', expectedFile);

const { fileExpected: ketFileExpected, file: ketFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/Ket/mixed-and-stereomarks-expected.ket',
'tests/test-data/KET/mixed-and-stereomarks-expected.ket',
});

expect(ketFile).toEqual(ketFileExpected);
Expand All @@ -366,15 +366,15 @@ test.describe('Enhanced Stereochemistry Tool', () => {
All enhanced stereochemistry features are present after opening.
It's possible to edit the stereo marks assignment after opening the saved file.
*/
await openFileAndAddToCanvas('Ket/mixed-or-stereomarks.ket', page);
await openFileAndAddToCanvas('KET/mixed-or-stereomarks.ket', page);
const expectedFile = await getKet(page);
await saveToFile('Ket/mixed-or-stereomarks-expected.ket', expectedFile);
await saveToFile('KET/mixed-or-stereomarks-expected.ket', expectedFile);

const { fileExpected: ketFileExpected, file: ketFile } =
await receiveFileComparisonData({
page,
expectedFileName:
'tests/test-data/Ket/mixed-or-stereomarks-expected.ket',
'tests/test-data/KET/mixed-or-stereomarks-expected.ket',
});

expect(ketFile).toEqual(ketFileExpected);
Expand All @@ -392,7 +392,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: The '&1' and 'or1' and 'abs' stereo marks appear next to the selected stereocenter.
*/
await openFileAndAddToCanvas(
'Ket/different-marks-stereostructure.ket',
'KET/different-marks-stereostructure.ket',
page,
);
await selectLabelDisplayAtStereogenicCenters(page, 'Classic');
Expand All @@ -404,7 +404,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: The '&1' and 'or1' and 'abs' stereo marks appear next to the selected stereocenter.
*/
await openFileAndAddToCanvas(
'Ket/different-marks-stereostructure.ket',
'KET/different-marks-stereostructure.ket',
page,
);
await selectLabelDisplayAtStereogenicCenters(page, 'On');
Expand All @@ -416,7 +416,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: Only stereo flag displays near the structure.
*/
await openFileAndAddToCanvas(
'Ket/different-marks-stereostructure.ket',
'KET/different-marks-stereostructure.ket',
page,
);
await selectLabelDisplayAtStereogenicCenters(page, 'Off');
Expand All @@ -428,7 +428,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: When 'Off' is selected - Stereobonds and stereo labels are displayed in black.
*/
await openFileAndAddToCanvas(
'Ket/different-marks-stereostructure.ket',
'KET/different-marks-stereostructure.ket',
page,
);
await selectColorOfStereogenicCenters(page, 'Off');
Expand All @@ -440,7 +440,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: When 'Labels and Bonds' is selected - Stereobonds and stereo labels are displayed in color.
*/
await openFileAndAddToCanvas(
'Ket/different-marks-stereostructure.ket',
'KET/different-marks-stereostructure.ket',
page,
);
await selectColorOfStereogenicCenters(page, 'Labels and Bonds');
Expand All @@ -453,7 +453,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
and stereo labels are displayed in black.
*/
await openFileAndAddToCanvas(
'Ket/different-marks-stereostructure.ket',
'KET/different-marks-stereostructure.ket',
page,
);
await selectColorOfStereogenicCenters(page, 'Bonds Only');
Expand Down Expand Up @@ -559,7 +559,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
'Add to OR [ ] Group' setting becomes available when at least
one OR group has been created on the canvas.
*/
await openFileAndAddToCanvas('Ket/mixed-and-or-structure.ket', page);
await openFileAndAddToCanvas('KET/mixed-and-or-structure.ket', page);
await selectLeftPanelButton(LeftPanelButton.Stereochemistry, page);
});

Expand All @@ -569,7 +569,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: Labels (&) are colored and color intensity is decreasing with the number.
*/
await openFileAndAddToCanvas(
'Ket/mixed-with-eight-stereocenters.ket',
'KET/mixed-with-eight-stereocenters.ket',
page,
);
await takeEditorScreenshot(page);
Expand All @@ -592,7 +592,7 @@ test.describe('Enhanced Stereochemistry Tool', () => {
Description: Stereo flag - Mixed2
*/
await editMixedFlagText(page, 'Mixed2');
await openFileAndAddToCanvas('Ket/mixed-and-stereomarks.ket', page);
await openFileAndAddToCanvas('KET/mixed-and-stereomarks.ket', page);
});

test('No overlapping of Stereo flag and structure', async ({ page }) => {
Expand Down
Loading

0 comments on commit ebf47a2

Please sign in to comment.