Skip to content

Commit

Permalink
tests: add feedback mail test
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu <[email protected]>
  • Loading branch information
Caracol3 committed Mar 4, 2025
1 parent 7ba1d2b commit 61232fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion front/src/styles/scss/applications/stdcm/_results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@
background-color: var(--white100);
border-radius: 5px;
color: var(--grey70);
font-size: 16px;
font-weight: 500;
width: 67px;
height: 32px;
Expand Down
19 changes: 0 additions & 19 deletions front/tests/015-stdcm-feedback-mail.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,7 @@ test.describe('FeedbackCard Tests', () => {
await stdcmPage.launchSimulation();

await stdcmPage.verifyFeedbackCardVisibility();
});

test('Verify Feedback button click', async () => {
// Ensure the simulation is launched before interacting with the FeedbackCard
await stdcmPage.fillAndVerifyConsistDetails(consistDetails, '180', '40');
await stdcmPage.fillAndVerifyOriginDetails();
await stdcmPage.fillAndVerifyDestinationDetails();
await stdcmPage.launchSimulation();

// Verify that the feedback button can be clicked
await stdcmPage.clickFeedbackButton();
});

test('Verify email redirection', async () => {
// Ensure the simulation is launched before testing email redirection
await stdcmPage.fillAndVerifyConsistDetails(consistDetails, '180', '40');
await stdcmPage.fillAndVerifyOriginDetails();
await stdcmPage.fillAndVerifyDestinationDetails();
await stdcmPage.launchSimulation();

const expectedSubject = 'Feedback on the STDCM simulator';
const expectedBody = `
********
Expand Down
1 change: 0 additions & 1 deletion front/tests/pages/stdcm-page-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ class STDCMPage extends HomePage {

// Verify feedback card visibility
async verifyFeedbackCardVisibility() {
await this.launchSimulation();
await expect(this.simulationResultTable).toBeVisible();
await expect(this.feedbackCardContainer).toBeVisible();
await expect(this.feedbackTitle).toBeVisible();
Expand Down

0 comments on commit 61232fc

Please sign in to comment.