run the cypress e2e tests for frontend->com_privacy->request
all 6 tests for Test in frontend that the privacy request view pass
all 6 tests fail - examples below
can submit an information request of type export without a menu item
TypeError
Cannot read properties of undefined (reading 'sender')
[tests/System/integration/site/components/com_privacy/Request.cy.js:33:28](https://j5.test/__/#)
31 | cy.get('.alert-message').should('contain.text', 'Your information request has been created. Before it can be processed, you must verify this request. An email has been sent to your address with additional instructions to complete this verification.');
32 | cy.wrap(mails).should('have.lengthOf', 2);
> 33 | cy.wrap(mails[0].sender).should('equal', Cypress.env('email'));
| ^
34 | cy.wrap(mails[0].body).should('have.string', `A new information request has been submitted by ${Cypress.env('email')}.`);
35 | cy.wrap(mails[1].body).should('have.string', 'Someone has created a request to export all personal information related to this email address at ');
36 | });
can submit an information request of type remove without a menu item
TypeError
Cannot read properties of undefined (reading 'sender')
[tests/System/integration/site/components/com_privacy/Request.cy.js:65:28](https://j5.test/__/#)
63 | cy.get('.alert-message').should('contain.text', 'Your information request has been created. Before it can be processed, you must verify this request. An email has been sent to your address with additional instructions to complete this verification.');
64 | cy.wrap(mails).should('have.lengthOf', 2);
> 65 | cy.wrap(mails[0].sender).should('equal', Cypress.env('email'));
| ^
66 | cy.wrap(mails[0].body).should('have.string', `A new information request has been submitted by ${Cypress.env('email')}.`);
67 | cy.wrap(mails[1].body).should('have.string', 'Someone has created a request to remove all personal information related to this email address at ');
68 | });
can verify link sent to user is valid
TypeError
Cannot read properties of undefined (reading 'body')
[tests/System/integration/site/components/com_privacy/Request.cy.js:96:28](https://j5.test/__/#)
94 |
95 | cy.task('getMails').then((mails) => {
> 96 | const str = mails[1].body;
| ^
97 |
98 | const firstSplitURL = str.split('paste your token into the form.\n')[1];
99 | const secondSplitURL = firstSplitURL.split('URL: ')[1];
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-03-03 07:10:49 |
Closed_By | ⇒ | alikon |
No not resolved
Status | Closed | ⇒ | New |
Closed_Date | 2024-03-03 07:10:49 | ⇒ | |
Closed_By | alikon | ⇒ |
i'm unable to reproduce nor drone
Closing this issue now, has been resolved elsewhere
but feel free to reopen if needed.