E2E Tests: unify compose files, support Opensearch (#28716)
* Unify docker-compose files, support opensearch and redis * Support cypress/playwright bools, MM_SERVICE_OVERRIDES input * Remove unused directives from E2E tests * [skip ci] Fix ES tests, PR messages * [skip ci] Fix service pruning on server restart * [skip ci] Make services overrides a CSV, better param descriptions --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6af8c2f83e
Коммит
0a14eb3d45
@@ -78,13 +78,13 @@ describe('MM-T2574 Session Lengths', () => {
|
||||
},
|
||||
};
|
||||
|
||||
cy.get('#extendSessionLengthWithActivityfalse').check();
|
||||
cy.get('#extendSessionLengthWithActivityfalse').should('exist').check();
|
||||
Object.entries(helpText).forEach(([key, value]) => {
|
||||
cy.findByTestId(key).should('exist');
|
||||
cy.findByTestId(`${key}help-text`).should('have.text', value.false);
|
||||
});
|
||||
|
||||
cy.get('#extendSessionLengthWithActivitytrue').check();
|
||||
cy.get('#extendSessionLengthWithActivitytrue').should('exist').check();
|
||||
Object.entries(helpText).forEach(([key, value]) => {
|
||||
if (value.true) {
|
||||
cy.findByTestId(key).should('exist');
|
||||
|
||||
@@ -101,11 +101,11 @@ describe('Integrations page', () => {
|
||||
const cId = clientID as unknown as string;
|
||||
cy.contains('.item-details', cId).within(() => {
|
||||
// * Copy button should exist for Client ID
|
||||
cy.contains('.item-details__token', 'Client ID').within(() => {
|
||||
cy.contains('.item-details__token', 'Client ID').should('exist').within(() => {
|
||||
cy.get('.fa-copy').should('exist');
|
||||
});
|
||||
|
||||
cy.contains('.item-details__token', 'Client Secret').within(() => {
|
||||
cy.contains('.item-details__token', 'Client Secret').should('exist').within(() => {
|
||||
// * Client secret should not show
|
||||
cy.contains('*******************').should('exist');
|
||||
|
||||
@@ -120,7 +120,7 @@ describe('Integrations page', () => {
|
||||
cy.findByText('Hide Secret').should('exist');
|
||||
cy.findByText('Show Secret').should('not.exist');
|
||||
|
||||
cy.contains('.item-details__token', 'Client Secret').within(() => {
|
||||
cy.contains('.item-details__token', 'Client Secret').should('exist').within(() => {
|
||||
// * Token should not be obscured
|
||||
cy.contains('*******************').should('not.exist');
|
||||
|
||||
|
||||
@@ -394,6 +394,9 @@ describe('Integrations page', () => {
|
||||
// # Enter a request url for custom slash command
|
||||
cy.findByLabelText('Request URL').should('exist').scrollIntoView().type('https://example.com');
|
||||
|
||||
// # Enter the desired request method
|
||||
cy.findByLabelText('Request Method').should('exist').scrollIntoView().select('GET');
|
||||
|
||||
// # Check the option of autocomplete
|
||||
cy.findByLabelText('Autocomplete').should('exist').scrollIntoView().click();
|
||||
|
||||
|
||||
@@ -99,6 +99,7 @@ describe('System Console > User Management > Users', () => {
|
||||
it('MM-T933 Users - System admin changes own password - Cancel out of changes', () => {
|
||||
// # Search for the admin.
|
||||
cy.findByPlaceholderText('Search users').type(otherAdmin.username).wait(TIMEOUTS.HALF_SEC);
|
||||
cy.get('#systemUsersTable-cell-0_emailColumn').should('contain', otherAdmin.email);
|
||||
|
||||
// # Open the actions menu.
|
||||
cy.get('#systemUsersTable-cell-0_actionsColumn').click().wait(TIMEOUTS.HALF_SEC);
|
||||
@@ -123,6 +124,7 @@ describe('System Console > User Management > Users', () => {
|
||||
it('MM-T934 Users - System admin changes own password - Incorrect old password', () => {
|
||||
// # Search for the admin.
|
||||
cy.findByPlaceholderText('Search users').type(otherAdmin.username).wait(TIMEOUTS.HALF_SEC);
|
||||
cy.get('#systemUsersTable-cell-0_emailColumn').should('contain', otherAdmin.email);
|
||||
|
||||
// # Open the actions menu.
|
||||
cy.get('#systemUsersTable-cell-0_actionsColumn').click().wait(TIMEOUTS.HALF_SEC);
|
||||
@@ -145,6 +147,7 @@ describe('System Console > User Management > Users', () => {
|
||||
it('MM-T935 Users - System admin changes own password - Invalid new password', () => {
|
||||
// # Search for the admin.
|
||||
cy.findByPlaceholderText('Search users').type(otherAdmin.username).wait(TIMEOUTS.HALF_SEC);
|
||||
cy.get('#systemUsersTable-cell-0_emailColumn').should('contain', otherAdmin.email);
|
||||
|
||||
// # Open the actions menu.
|
||||
cy.get('#systemUsersTable-cell-0_actionsColumn').click().wait(TIMEOUTS.HALF_SEC);
|
||||
@@ -167,6 +170,7 @@ describe('System Console > User Management > Users', () => {
|
||||
it('MM-T936 Users - System admin changes own password - Blank fields', () => {
|
||||
// # Search for the admin.
|
||||
cy.findByPlaceholderText('Search users').type(otherAdmin.username).wait(TIMEOUTS.HALF_SEC);
|
||||
cy.get('#systemUsersTable-cell-0_emailColumn').should('contain', otherAdmin.email);
|
||||
|
||||
// # Open the actions menu.
|
||||
cy.get('#systemUsersTable-cell-0_actionsColumn').click().wait(TIMEOUTS.HALF_SEC);
|
||||
@@ -195,6 +199,7 @@ describe('System Console > User Management > Users', () => {
|
||||
it('MM-T937 Users - System admin changes own password - Successfully changed', () => {
|
||||
// # Search for the admin.
|
||||
cy.findByPlaceholderText('Search users').type(otherAdmin.username).wait(TIMEOUTS.HALF_SEC);
|
||||
cy.get('#systemUsersTable-cell-0_emailColumn').should('contain', otherAdmin.email);
|
||||
|
||||
// # Open the actions menu.
|
||||
cy.get('#systemUsersTable-cell-0_actionsColumn').click().wait(TIMEOUTS.HALF_SEC);
|
||||
|
||||
Ссылка в новой задаче
Block a user