Skip to content

Commit

Permalink
fixup! front: add speed space chart e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Maymanaf committed Dec 13, 2024
1 parent aee825c commit ac4f85a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
14 changes: 0 additions & 14 deletions front/tests/012-op-simulation-settings-tab.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@ test.describe('Simulation Settings Tab Verification', () => {
await operationalStudiesPage.returnSimulationResult();
await opTimetablePage.getTrainArrivalTime('11:53');
await opTimetablePage.clickOnScenarioCollapseButton();
// TODO: Remove the waitForTimeout and firefox from performOnSpecificOSAndBrowser when issue #9909 is fixed
await page.waitForTimeout(stabilityTimeout);
await opOutputTablePage.verifyTimesStopsDataSheetVisibility();
await simulationResultPage.selectAllSpeedSpaceChartCheckboxes();
await performOnSpecificOSAndBrowser(
Expand All @@ -199,8 +197,6 @@ test.describe('Simulation Settings Tab Verification', () => {
await page.waitForTimeout(stabilityTimeout); // Waiting for the timetable to update due to a slight latency
await opTimetablePage.getTrainArrivalTime('11:52');
await opTimetablePage.clickOnScenarioCollapseButton();
// TODO: Remove the waitForTimeout and firefox from performOnSpecificOSAndBrowser when issue #9909 is fixed
await page.waitForTimeout(stabilityTimeout);
await opOutputTablePage.verifyTimesStopsDataSheetVisibility();
await simulationResultPage.selectAllSpeedSpaceChartCheckboxes();
await performOnSpecificOSAndBrowser(
Expand Down Expand Up @@ -257,8 +253,6 @@ test.describe('Simulation Settings Tab Verification', () => {
await operationalStudiesPage.returnSimulationResult();
await opTimetablePage.getTrainArrivalTime('12:03');
await opTimetablePage.clickOnScenarioCollapseButton();
// TODO: Remove the waitForTimeout and firefox from performOnSpecificOSAndBrowser when issue #9909 is fixed
await page.waitForTimeout(stabilityTimeout);
await opOutputTablePage.verifyTimesStopsDataSheetVisibility();
await simulationResultPage.selectAllSpeedSpaceChartCheckboxes();
await performOnSpecificOSAndBrowser(
Expand All @@ -283,8 +277,6 @@ test.describe('Simulation Settings Tab Verification', () => {
await page.waitForTimeout(stabilityTimeout);
await opTimetablePage.getTrainArrivalTime('11:52');
await opTimetablePage.clickOnScenarioCollapseButton();
// TODO: Remove the waitForTimeout and firefox from performOnSpecificOSAndBrowser when issue #9909 is fixed
await page.waitForTimeout(stabilityTimeout);
await opOutputTablePage.verifyTimesStopsDataSheetVisibility();
await simulationResultPage.selectAllSpeedSpaceChartCheckboxes();
await performOnSpecificOSAndBrowser(
Expand Down Expand Up @@ -350,8 +342,6 @@ test.describe('Simulation Settings Tab Verification', () => {
await operationalStudiesPage.returnSimulationResult();
await opTimetablePage.getTrainArrivalTime('11:54');
await opTimetablePage.clickOnScenarioCollapseButton();
// TODO: Remove the waitForTimeout and firefox from performOnSpecificOSAndBrowser when issue #9909 is fixed
await page.waitForTimeout(stabilityTimeout);
await opOutputTablePage.verifyTimesStopsDataSheetVisibility();
await simulationResultPage.selectAllSpeedSpaceChartCheckboxes();
await performOnSpecificOSAndBrowser(
Expand All @@ -376,8 +366,6 @@ test.describe('Simulation Settings Tab Verification', () => {
await page.waitForTimeout(stabilityTimeout);
await opTimetablePage.getTrainArrivalTime('11:54');
await opTimetablePage.clickOnScenarioCollapseButton();
// TODO: Remove the waitForTimeout and firefox from performOnSpecificOSAndBrowser when issue #9909 is fixed
await page.waitForTimeout(stabilityTimeout);
await opOutputTablePage.verifyTimesStopsDataSheetVisibility();
await simulationResultPage.selectAllSpeedSpaceChartCheckboxes();
await performOnSpecificOSAndBrowser(
Expand Down Expand Up @@ -444,8 +432,6 @@ test.describe('Simulation Settings Tab Verification', () => {
await operationalStudiesPage.returnSimulationResult();
await opTimetablePage.getTrainArrivalTime('12:06');
await opTimetablePage.clickOnScenarioCollapseButton();
// TODO: Remove the waitForTimeout and firefox from performOnSpecificOSAndBrowser when issue #9909 is fixed
await page.waitForTimeout(stabilityTimeout);
await opOutputTablePage.verifyTimesStopsDataSheetVisibility();
await simulationResultPage.selectAllSpeedSpaceChartCheckboxes();
await performOnSpecificOSAndBrowser(
Expand Down
8 changes: 2 additions & 6 deletions front/tests/pages/common-page-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ class CommonPage {
}

async closeToastNotification(): Promise<void> {
const toastCount = await this.toastSNCF.count();

if (toastCount > 0) {
const toastElements = await this.toastSNCF.all();
await Promise.all(toastElements.map((toastElement) => toastElement.click()));
}
const toastElements = await this.toastSNCF.all();
await Promise.all(toastElements.map((toastElement) => toastElement.click()));
}
}

Expand Down

0 comments on commit ac4f85a

Please sign in to comment.