diff --git a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--corporation.cy.ts b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--corporation.cy.ts index 18643286a1e..9fb18c33290 100644 --- a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--corporation.cy.ts +++ b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--corporation.cy.ts @@ -191,7 +191,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); @@ -352,7 +353,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); diff --git a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-other-than-tax-matters-partner.cy.ts b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-other-than-tax-matters-partner.cy.ts index 45a1239fdba..c3c42239b2b 100644 --- a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-other-than-tax-matters-partner.cy.ts +++ b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-other-than-tax-matters-partner.cy.ts @@ -207,7 +207,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); @@ -384,7 +385,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); diff --git a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-representative-under-BBA.cy.ts b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-representative-under-BBA.cy.ts index 9fc79234b9b..79245c024d9 100644 --- a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-representative-under-BBA.cy.ts +++ b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-representative-under-BBA.cy.ts @@ -202,7 +202,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); @@ -374,7 +375,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); diff --git a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-tax-matters-partner.cy.ts b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-tax-matters-partner.cy.ts index c33f24712af..7e21c150846 100644 --- a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-tax-matters-partner.cy.ts +++ b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-1-business--partnership-tax-matters-partner.cy.ts @@ -202,7 +202,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); @@ -375,7 +376,8 @@ describe('File a petition: Step 1 - Petitioner Information', () => { attachFile({ filePath: uploadFile, selector: `[data-testid="${input}"]`, - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: + '[data-testid^="upload-file-success"]', }); } }); diff --git a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-2.cy.ts b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-2.cy.ts index 2fbd894ad9c..fe8aca20174 100644 --- a/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-2.cy.ts +++ b/cypress/local-only/tests/integration/fileAPetitionUpdated/file-a-petition-step-2.cy.ts @@ -152,7 +152,7 @@ describe('File a petition', () => { attachFile({ filePath: '../../helpers/file/sample.pdf', selector: '#petition-file', - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: '[data-testid^="upload-file-success"]', }); cy.get('[data-testid="petition-error-message-0"]').should( @@ -164,7 +164,7 @@ describe('File a petition', () => { attachFile({ filePath: '../../helpers/file/sample.pdf', selector: '#petition-file', - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: '[data-testid^="upload-file-success"]', }); cy.get('[data-testid="petition-error-message-0"]').should( diff --git a/cypress/local-only/tests/integration/fileAPetitionUpdated/petition-helper.ts b/cypress/local-only/tests/integration/fileAPetitionUpdated/petition-helper.ts index 22df1b0c0f6..dfe877cbd01 100644 --- a/cypress/local-only/tests/integration/fileAPetitionUpdated/petition-helper.ts +++ b/cypress/local-only/tests/integration/fileAPetitionUpdated/petition-helper.ts @@ -58,7 +58,7 @@ export function fillPetitionFileInformation(filePath: string) { attachFile({ filePath, selector: '#petition-file', - selectorToAwaitOnSuccess: '[data-testid="remove-pdf"]', + selectorToAwaitOnSuccess: '[data-testid^="upload-file-success"]', }); cy.get('[data-testid="petition-redaction-acknowledgement-label"]').click(); cy.get('[data-testid="step-2-next-button"]').click();