fix(editor): Fix flaky mapping tests (#10453)

This commit is contained in:
Elias Meire
2024-08-16 15:30:20 +02:00
committed by GitHub
parent b857c2cda0
commit fc6d4138d5
6 changed files with 23 additions and 11 deletions

View File

@@ -36,13 +36,13 @@ describe('Personal Settings', () => {
});
});
// eslint-disable-next-line n8n-local-rules/no-skipped-tests
it.skip('not allow malicious values for personal data', () => {
it('not allow malicious values for personal data', () => {
cy.visit('/settings/personal');
INVALID_NAMES.forEach((name) => {
cy.getByTestId('personal-data-form').find('input[name="firstName"]').clear().type(name);
cy.getByTestId('personal-data-form').find('input[name="lastName"]').clear().type(name);
cy.getByTestId('save-settings-button').click();
errorToast().should('contain', 'Malicious firstName | Malicious lastName');
errorToast().should('contain', 'Potentially malicious string | Potentially malicious string');
errorToast().find('.el-notification__closeBtn').click();
});
});