Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2e-tests/cypress/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ export default defineConfig({
viewportWidth: 1300,
allowCypressEnv: false,
expose: {
adminEmail: 'sysadmin@sample.mattermost.com',
adminUsername: 'sysadmin',
adminPassword: 'Sys@dmin-sample1',
adminEmail: process.env.CYPRESS_adminEmail || 'sysadmin@sample.mattermost.com',
adminUsername: process.env.CYPRESS_adminUsername || 'sysadmin',
adminPassword: process.env.CYPRESS_adminPassword || 'Sys@dmin-sample1',
allowedUntrustedInternalConnections: 'localhost',
cwsURL: 'http://localhost:8076',
cwsAPIURL: 'http://localhost:8076',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ describe('Verify Accessibility Support in Different Images', () => {
let otherUser;

before(() => {
cy.apiInitSetup().then(({offTopicUrl, user}) => {
otherUser = user;
cy.apiInitSetup().then(({team, offTopicUrl, user}) => {
cy.apiCreateUser({prefix: 'other'}).then(({user: user1}) => {
otherUser = user1;
return cy.apiAddUserToTeam(team.id, otherUser.id);
}).then(() => {
cy.apiLogin(user);

// Visit the Off Topic channel
cy.visit(offTopicUrl);
// Visit the Off Topic channel
cy.visit(offTopicUrl);
});
});
});

Expand Down
1 change: 1 addition & 0 deletions e2e-tests/cypress/tests/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ function sysadminSetup(user) {

function resetUserPreference(userId) {
cy.apiSaveTeammateNameDisplayPreference('username');
cy.apiSaveMessageDisplayPreference('clean');
cy.apiSaveLinkPreviewsPreference('true');
cy.apiSaveCollapsePreviewsPreference('false');
cy.apiSaveClockDisplayModeTo24HourPreference(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ test.describe('System Console - Users table sorting', () => {
}
expect(emails.length).toBeGreaterThan(3);

const sorted = [...emails].sort((a, b) => a.localeCompare(b));
const sorted = [...emails].sort((a, b) => a.localeCompare(b, undefined, {ignorePunctuation: true}));
if (sortDirection === 'descending') {
sorted.reverse();
}
Expand Down Expand Up @@ -81,7 +81,7 @@ test.describe('System Console - Users table sorting', () => {
}
expect(emails.length).toBeGreaterThan(3);

const sorted = [...emails].sort((a, b) => a.localeCompare(b));
const sorted = [...emails].sort((a, b) => a.localeCompare(b, undefined, {ignorePunctuation: true}));
if (reversedDirection === 'descending') {
sorted.reverse();
}
Expand Down
Loading