links now add utm_ data added cannot do exact match (#23885)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f7e87bfe29
Коммит
739fc8edf1
@@ -21,6 +21,7 @@ describe('SupportSettings', () => {
|
|||||||
const aboutLink = 'https://mattermost.com/default-about/';
|
const aboutLink = 'https://mattermost.com/default-about/';
|
||||||
const helpLink = 'https://github.com/mattermost/platform/blob/master/doc/help/README.md';
|
const helpLink = 'https://github.com/mattermost/platform/blob/master/doc/help/README.md';
|
||||||
const problemLink = 'https://forum.mattermost.com/c/trouble-shoot';
|
const problemLink = 'https://forum.mattermost.com/c/trouble-shoot';
|
||||||
|
const askCommunityLink = 'https://mattermost.com/pl/default-ask-mattermost-community';
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.shouldNotRunOnCloudEdition();
|
cy.shouldNotRunOnCloudEdition();
|
||||||
@@ -56,7 +57,7 @@ describe('SupportSettings', () => {
|
|||||||
].forEach((guide) => {
|
].forEach((guide) => {
|
||||||
cy.findByText(guide.text).
|
cy.findByText(guide.text).
|
||||||
parent().
|
parent().
|
||||||
should('have.attr', 'href', guide.link);
|
should('have.attr', 'href').and('match', new RegExp(`${guide.link}/*`));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -76,7 +77,7 @@ describe('SupportSettings', () => {
|
|||||||
// * Verify that links are correct at login page
|
// * Verify that links are correct at login page
|
||||||
guides.forEach((guide) => {
|
guides.forEach((guide) => {
|
||||||
cy.findByText(guide.text).
|
cy.findByText(guide.text).
|
||||||
should('have.attr', 'href', guide.link);
|
should('have.attr', 'href').and('match', new RegExp(`${guide.link}/*`));
|
||||||
});
|
});
|
||||||
|
|
||||||
// # Visit signup page
|
// # Visit signup page
|
||||||
@@ -87,7 +88,7 @@ describe('SupportSettings', () => {
|
|||||||
cy.get('.hfroute-footer').scrollIntoView().should('be.visible').within(() => {
|
cy.get('.hfroute-footer').scrollIntoView().should('be.visible').within(() => {
|
||||||
guides.forEach((guide) => {
|
guides.forEach((guide) => {
|
||||||
cy.findByText(guide.text).
|
cy.findByText(guide.text).
|
||||||
should('have.attr', 'href', guide.link);
|
should('have.attr', 'href').and('match', new RegExp(`${guide.link}/*`));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -107,7 +108,7 @@ describe('SupportSettings', () => {
|
|||||||
|
|
||||||
// * Verify that terms of services link is set to default
|
// * Verify that terms of services link is set to default
|
||||||
cy.findByText('Terms').
|
cy.findByText('Terms').
|
||||||
should('have.attr', 'href', TERMS_OF_SERVICE_LINK);
|
should('have.attr', 'href').and('match', new RegExp(`${TERMS_OF_SERVICE_LINK}/*`));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('MM-T1036 - Customization: Blank Help and Report a Problem hides options from help menu', () => {
|
it('MM-T1036 - Customization: Blank Help and Report a Problem hides options from help menu', () => {
|
||||||
@@ -174,7 +175,7 @@ describe('SupportSettings', () => {
|
|||||||
// * Verify default link of Ask the community
|
// * Verify default link of Ask the community
|
||||||
cy.findByText('Ask the community').
|
cy.findByText('Ask the community').
|
||||||
parent().
|
parent().
|
||||||
should('have.attr', 'href', 'https://mattermost.com/pl/default-ask-mattermost-community/');
|
should('have.attr', 'href').and('match', new RegExp(`${askCommunityLink}/*`));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -205,7 +206,7 @@ describe('SupportSettings', () => {
|
|||||||
// * Verify report a problem link has changed
|
// * Verify report a problem link has changed
|
||||||
cy.findByText('Report a problem').
|
cy.findByText('Report a problem').
|
||||||
parent().
|
parent().
|
||||||
should('have.attr', 'href', problemLink);
|
should('have.attr', 'href').and('match', new RegExp(`${problemLink}/*`));
|
||||||
|
|
||||||
// # Click on keyboard shortcuts
|
// # Click on keyboard shortcuts
|
||||||
cy.findByText('Keyboard shortcuts').click();
|
cy.findByText('Keyboard shortcuts').click();
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ describe('SupportSettings', () => {
|
|||||||
cy.uiOpenProductMenu(`About ${siteName}`);
|
cy.uiOpenProductMenu(`About ${siteName}`);
|
||||||
|
|
||||||
// * Verify that links do not change and they open to default pages
|
// * Verify that links do not change and they open to default pages
|
||||||
cy.get('#tosLink').should('contain', 'Terms of Use').and('have.attr', 'href').and('equal', FixedPublicLinks.TermsOfService);
|
cy.get('#tosLink').should('contain', 'Terms of Use').and('have.attr', 'href').and('match', new RegExp(`${FixedPublicLinks.TermsOfService}/*`));
|
||||||
cy.get('#privacyLink').should('contain', 'Privacy Policy').and('have.attr', 'href').and('equal', FixedPublicLinks.PrivacyPolicy);
|
cy.get('#privacyLink').should('contain', 'Privacy Policy').and('have.attr', 'href').and('match', new RegExp(`${FixedPublicLinks.PrivacyPolicy}/*`));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('MM-T1034 - Customization: Blank TOS link field (About modal)', () => {
|
it('MM-T1034 - Customization: Blank TOS link field (About modal)', () => {
|
||||||
@@ -69,7 +69,7 @@ describe('SupportSettings', () => {
|
|||||||
cy.uiOpenProductMenu(`About ${siteName}`);
|
cy.uiOpenProductMenu(`About ${siteName}`);
|
||||||
|
|
||||||
// * Verify that tos link is set to default
|
// * Verify that tos link is set to default
|
||||||
cy.get('#tosLink').should('contain', 'Terms of Use').and('have.attr', 'href').and('equal', FixedPublicLinks.TermsOfService);
|
cy.get('#tosLink').should('contain', 'Terms of Use').and('have.attr', 'href').and('match', new RegExp(`${FixedPublicLinks.TermsOfService}/*`));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('MM-T1035 - Customization Blank Privacy hides the link', () => {
|
it('MM-T1035 - Customization Blank Privacy hides the link', () => {
|
||||||
@@ -86,7 +86,7 @@ describe('SupportSettings', () => {
|
|||||||
cy.get('#tosLink').should('be.visible').and('contain', 'Terms of Use');
|
cy.get('#tosLink').should('be.visible').and('contain', 'Terms of Use');
|
||||||
|
|
||||||
// * Verify that privacy link is there
|
// * Verify that privacy link is there
|
||||||
cy.get('#privacyLink').should('contain', 'Privacy Policy').and('have.attr', 'href').and('equal', FixedPublicLinks.PrivacyPolicy);
|
cy.get('#privacyLink').should('contain', 'Privacy Policy').and('have.attr', 'href').and('match', new RegExp(`${FixedPublicLinks.PrivacyPolicy}/*`));
|
||||||
|
|
||||||
// # Logout
|
// # Logout
|
||||||
cy.apiLogout();
|
cy.apiLogout();
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user