Skip to content

Commit

Permalink
fixed data-testids
Browse files Browse the repository at this point in the history
  • Loading branch information
its-aazizi committed May 13, 2024
1 parent 37a8929 commit 6523cd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe("Connecting and Disconnecting AWS account", () => {
beforeEach(() => {
cy.visitDomain(`${Cypress.env("WEB_DOMAIN")}/demo`);
cy.get('[data-testid="hamburger-menu"]').click();
cy.get('[data-testid="connect-aws-account-button"]').click();
cy.get('[data-testid="connect-aws-account-button"]').first().click();
cy.wait(5000);
cy.get('[placeholder="Enter IdentityPoolId"]').type(`${Cypress.env("IDENTITY_POOL_ID")}`);
cy.get('[placeholder="Enter UserDomain"]').type(`${Cypress.env("USER_DOMAIN")}`);
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/userIsAbleToUseGeofence.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe("Geofence", () => {
beforeEach(() => {
cy.visitDomain(`${Cypress.env("WEB_DOMAIN")}/demo`);
cy.get('[data-testid="hamburger-menu"]').click();
cy.get('[data-testid="connect-aws-account-button"]').click();
cy.get('[data-testid="connect-aws-account-button"]').first().click();
cy.wait(5000);
cy.get('[placeholder="Enter IdentityPoolId"]').type(`${Cypress.env("IDENTITY_POOL_ID")}`);
cy.get('[placeholder="Enter UserDomain"]').type(`${Cypress.env("USER_DOMAIN")}`);
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/userIsAbleToUseTracker.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("Tracker", () => {
beforeEach(() => {
cy.visitDomain(`${Cypress.env("WEB_DOMAIN")}/demo`);
cy.get('[data-testid="hamburger-menu"]').click();
cy.get('[data-testid="connect-aws-account-button"]').click();
cy.get('[data-testid="connect-aws-account-button"]').first().click();
cy.wait(5000);
cy.get('[placeholder="Enter IdentityPoolId"]').type(`${Cypress.env("IDENTITY_POOL_ID")}`);
cy.get('[placeholder="Enter UserDomain"]').type(`${Cypress.env("USER_DOMAIN")}`);
Expand Down
2 changes: 1 addition & 1 deletion src/atomicui/organisms/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const Sidebar: FC<SidebarProps> = ({
</Button>
)}
<Button
data-testid="connect-aws-account-button"
data-testid="provide-feedback-button"
variation="primary"
fontFamily="AmazonEmber-Bold"
textAlign="center"
Expand Down

0 comments on commit 6523cd5

Please sign in to comment.