From 1db38f3fd4f581a7b91ae782cb272a801ac78364 Mon Sep 17 00:00:00 2001 From: Hein Jeong Date: Wed, 9 Mar 2022 02:23:11 +0000 Subject: [PATCH] fix: change tabs to buttons per UI release 2.9.0 --- .../cypress/integration/primitives-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/test-generator/integration-test-templates/cypress/integration/primitives-spec.ts b/packages/test-generator/integration-test-templates/cypress/integration/primitives-spec.ts index e59cce84c..7a81a4690 100644 --- a/packages/test-generator/integration-test-templates/cypress/integration/primitives-spec.ts +++ b/packages/test-generator/integration-test-templates/cypress/integration/primitives-spec.ts @@ -307,8 +307,8 @@ describe('Primitives', () => { .find('div') .within(() => { cy.get('.amplify-tabs').within(() => { - cy.get('div').eq(0).should('have.text', 'Tab 1'); - cy.get('div').eq(1).should('have.text', 'Tab 2'); + cy.get('button').eq(0).should('have.text', 'Tab 1'); + cy.get('button').eq(1).should('have.text', 'Tab 2'); }); }); });