Skip to content

Commit

Permalink
10001-design-debt: more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mwindo committed Sep 5, 2024
1 parent 38a4791 commit 5c57536
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"]',
});
}
});
Expand Down Expand Up @@ -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"]',
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]',
});
}
});
Expand Down Expand Up @@ -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"]',
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]',
});
}
});
Expand Down Expand Up @@ -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"]',
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]',
});
}
});
Expand Down Expand Up @@ -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"]',
});
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5c57536

Please sign in to comment.