@@ -22,49 +22,49 @@ describe('Search results', () => {
2222 cy . get ( 'footer' ) . should ( 'be.visible' ) ;
2323 } ) ;
2424
25- it ( "should show the author's profile image" , ( ) => {
26- cy . get ( selectors . postCard )
27- . contains (
28- 'freeCodeCamp Just Got a Million Dollar Donation from an Alum to Build a Carbon-Neutral Web3 Curriculum'
29- )
30- . parentsUntil ( 'article' )
31- . find ( selectors . authorProfileImage )
32- . then ( $el => expect ( $el [ 0 ] . tagName . toLowerCase ( ) ) . to . equal ( 'img' ) ) ;
33- } ) ;
25+ // it("should show the author's profile image", () => {
26+ // cy.get(selectors.postCard)
27+ // .contains(
28+ // 'freeCodeCamp Just Got a Million Dollar Donation from an Alum to Build a Carbon-Neutral Web3 Curriculum'
29+ // )
30+ // .parentsUntil('article')
31+ // .find(selectors.authorProfileImage)
32+ // .then($el => expect($el[0].tagName.toLowerCase()).to.equal('img'));
33+ // });
3434
35- it ( "the author profile image should contain an `alt` attribute with the author's name" , ( ) => {
36- cy . get ( selectors . postCard )
37- . contains (
38- 'freeCodeCamp Just Got a Million Dollar Donation from an Alum to Build a Carbon-Neutral Web3 Curriculum'
39- )
40- . parentsUntil ( 'article' )
41- . find < HTMLImageElement > ( selectors . authorProfileImage )
42- . then ( $el => expect ( $el [ 0 ] . alt ) . to . equal ( 'Quincy Larson' ) ) ;
43- } ) ;
35+ // it("the author profile image should contain an `alt` attribute with the author's name", () => {
36+ // cy.get(selectors.postCard)
37+ // .contains(
38+ // 'freeCodeCamp Just Got a Million Dollar Donation from an Alum to Build a Carbon-Neutral Web3 Curriculum'
39+ // )
40+ // .parentsUntil('article')
41+ // .find<HTMLImageElement>(selectors.authorProfileImage)
42+ // .then($el => expect($el[0].alt).to.equal('Quincy Larson'));
43+ // });
4444
45- it ( 'post cards written by an author with no profile image should show the author SVG' , ( ) => {
46- cy . get ( selectors . postCard )
47- . contains ( 'No Author Profile Pic' )
48- . parentsUntil ( 'article' )
49- . find ( selectors . avatar )
50- . then ( $el => expect ( $el [ 0 ] . tagName . toLowerCase ( ) ) . to . equal ( 'svg' ) ) ;
51- } ) ;
45+ // it('post cards written by an author with no profile image should show the author SVG', () => {
46+ // cy.get(selectors.postCard)
47+ // .contains('No Author Profile Pic')
48+ // .parentsUntil('article')
49+ // .find(selectors.avatar)
50+ // .then($el => expect($el[0].tagName.toLowerCase()).to.equal('svg'));
51+ // });
5252
53- it ( "the avatar SVG should contain a `title` element with the author's name" , ( ) => {
54- cy . get ( selectors . postCard )
55- . contains ( 'No Author Profile Pic' )
56- . parentsUntil ( 'article' )
57- . find ( selectors . avatar )
58- . contains ( 'title' , 'Mrugesh Mohapatra' ) ;
59- } ) ;
53+ // it("the avatar SVG should contain a `title` element with the author's name", () => {
54+ // cy.get(selectors.postCard)
55+ // .contains('No Author Profile Pic')
56+ // .parentsUntil('article')
57+ // .find(selectors.avatar)
58+ // .contains('title', 'Mrugesh Mohapatra');
59+ // });
6060
61- it ( "posts written by 'freeCodeCamp.org' should not show the `author-list`, which contain's the author's name and profile image" , ( ) => {
62- cy . get ( selectors . postCard )
63- . contains ( 'Common Technical Support Questions – freeCodeCamp FAQ' )
64- . parentsUntil ( 'article' )
65- . find ( selectors . authorList )
66- . should ( 'not.exist' ) ;
67- } ) ;
61+ // it("posts written by 'freeCodeCamp.org' should not show the `author-list`, which contain's the author's name and profile image", () => {
62+ // cy.get(selectors.postCard)
63+ // .contains('Common Technical Support Questions – freeCodeCamp FAQ')
64+ // .parentsUntil('article')
65+ // .find(selectors.authorList)
66+ // .should('not.exist');
67+ // });
6868
6969 // To do: Finalize search schema and add tests for the original post / translator feature
7070} ) ;
0 commit comments