Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
jichang committed Apr 26, 2024
1 parent 7922472 commit 9be3389
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions packages/react/tests/view.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ test('view document', async ({ page }) => {
)
.click();
await page.getByTestId('pdf__plugin__metadata__content');
await page.getByTestId('pdf__ui__dialog__close__btn').click();
await page
.getByTestId(
`pdf__toolbar__item__plugin__${PdfApplicatinPluginKey.Metadata}`,
)
.click();

await page
.getByTestId(
Expand Down Expand Up @@ -49,13 +53,21 @@ test('view document', async ({ page }) => {
)
.click();
await page.getByTestId('pdf__plugin__attachments__content');
await page.getByTestId('pdf__ui__dialog__close__btn').click();
await page
.getByTestId(
`pdf__toolbar__item__plugin__${PdfApplicatinPluginKey.Attachments}`,
)
.click();

await page
.getByTestId(
`pdf__toolbar__item__plugin__${PdfApplicatinPluginKey.Signatures}`,
)
.click();
await page.getByTestId('pdf__plugin__signatures__content');
await page.getByTestId('pdf__ui__dialog__close__btn').click();
await page
.getByTestId(
`pdf__toolbar__item__plugin__${PdfApplicatinPluginKey.Signatures}`,
)
.click();
});

0 comments on commit 9be3389

Please sign in to comment.