@@ -71,48 +71,54 @@ test.describe('Landing Top - Variation B', () => {
7171 } ) ;
7272} ) ;
7373
74- test . describe ( 'Landing Top - Variation A' , ( ) => {
75- test . beforeEach ( async ( { context, page } ) => {
76- await addGrowthbookCookie ( { context, variation : 'newA' } ) ;
77- await goToLandingPage ( page ) ;
78- } ) ;
79-
80- test ( 'The headline renders correctly' , async ( { page } ) => {
81- const landingHeading1 = page . getByTestId ( 'landing-big-heading-1' ) ;
82- await expect ( landingHeading1 ) . toHaveText (
83- translations . landing [ 'big-heading-1' ]
84- ) ;
85-
86- const landingHeading2 = page . getByTestId ( 'landing-big-heading-2' ) ;
87- await expect ( landingHeading2 ) . toHaveText (
88- translations . landing [ 'big-heading-2' ]
89- ) ;
90-
91- const landingHeading3 = page . getByTestId ( 'landing-big-heading-3' ) ;
92- await expect ( landingHeading3 ) . toHaveText (
93- translations . landing [ 'big-heading-3' ]
94- ) ;
95- } ) ;
96-
97- test ( 'Logo row copy renders correctly' , async ( { page } ) => {
98- const landingH2Heading = page . getByTestId ( 'h2-heading' ) ;
99- await expect ( landingH2Heading ) . toHaveText (
100- translations . landing [ 'h2-heading' ] . replace ( / < \/ ? s t r o n g > / g, '' )
101- ) ;
102- } ) ;
103-
104- test ( 'Hero image should have a description' , async ( { isMobile, page } ) => {
105- const captionText = page . getByText (
106- translations . landing [ 'hero-img-description' ]
107- ) ;
108-
109- if ( isMobile ) {
110- await expect ( captionText ) . toBeHidden ( ) ;
111- } else {
112- await expect ( captionText ) . toBeVisible ( ) ;
113- }
114- } ) ;
115- } ) ;
74+ /*
75+ *
76+ * not currently in use after https://github.com/freeCodeCamp/freeCodeCamp/pull/61359
77+ * bring back after we fix GB
78+ */
79+
80+ // test.describe('Landing Top - Variation A', () => {
81+ // test.beforeEach(async ({ context, page }) => {
82+ // await addGrowthbookCookie({ context, variation: 'newA' });
83+ // await goToLandingPage(page);
84+ // });
85+
86+ // test('The headline renders correctly', async ({ page }) => {
87+ // const landingHeading1 = page.getByTestId('landing-big-heading-1');
88+ // await expect(landingHeading1).toHaveText(
89+ // translations.landing['big-heading-1']
90+ // );
91+
92+ // const landingHeading2 = page.getByTestId('landing-big-heading-2');
93+ // await expect(landingHeading2).toHaveText(
94+ // translations.landing['big-heading-2']
95+ // );
96+
97+ // const landingHeading3 = page.getByTestId('landing-big-heading-3');
98+ // await expect(landingHeading3).toHaveText(
99+ // translations.landing['big-heading-3']
100+ // );
101+ // });
102+
103+ // test('Logo row copy renders correctly', async ({ page }) => {
104+ // const landingH2Heading = page.getByTestId('h2-heading');
105+ // await expect(landingH2Heading).toHaveText(
106+ // translations.landing['h2-heading'].replace(/<\/?strong>/g, '')
107+ // );
108+ // });
109+
110+ // test('Hero image should have a description', async ({ isMobile, page }) => {
111+ // const captionText = page.getByText(
112+ // translations.landing['hero-img-description']
113+ // );
114+
115+ // if (isMobile) {
116+ // await expect(captionText).toBeHidden();
117+ // } else {
118+ // await expect(captionText).toBeVisible();
119+ // }
120+ // });
121+ // });
116122
117123test . describe ( 'Landing Page' , ( ) => {
118124 test . beforeEach ( async ( { page } ) => {
0 commit comments