test(client): match any dates (linkedin button) (#39754)
Co-authored-by: Twaha Rahman <39026437+Twaha-Rahman@users.noreply.github.com> Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
41d40608a1
commit
2b60d14b5c
@ -52,11 +52,13 @@ describe('A certification,', function() {
|
||||
});
|
||||
|
||||
it('should render a LinkedIn button', function() {
|
||||
cy.contains('Add this certification to my LinkedIn profile').should(
|
||||
'have.attr',
|
||||
'href',
|
||||
'https://www.linkedin.com/profile/add?startTask=CERTIFICATION_NAME&name=Legacy Front End&organizationId=4831032&issueYear=2020&issueMonth=8&certUrl=https://freecodecamp.org/certification/developmentuser/legacy-front-end'
|
||||
);
|
||||
cy.contains('Add this certification to my LinkedIn profile')
|
||||
.should('have.attr', 'href')
|
||||
.and(
|
||||
'match',
|
||||
// eslint-disable-next-line max-len
|
||||
/https:\/\/www\.linkedin\.com\/profile\/add\?startTask=CERTIFICATION_NAME&name=Legacy Front End&organizationId=4831032&issueYear=\d\d\d\d&issueMonth=\d\d?&certUrl=https:\/\/freecodecamp\.org\/certification\/developmentuser\/legacy-front-end/
|
||||
);
|
||||
});
|
||||
|
||||
it('should render a Twitter button', function() {
|
||||
|
Reference in New Issue
Block a user