Skip to content

Commit

Permalink
Merge pull request #5 from aulasoftwarelibre/feat-scrapping
Browse files Browse the repository at this point in the history
feat: import books from online store
  • Loading branch information
sgomez authored Apr 28, 2024
2 parents 2726410 + e3cd0d8 commit 711cfea
Show file tree
Hide file tree
Showing 9 changed files with 679 additions and 51 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/pages/book.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class BookPage {
}

async submit() {
await this.page.getByRole('button', { name: 'Enviar' }).click()
await this.page.getByRole('button', { name: 'Enviar' }).first().click()
}

async remove(id: string) {
Expand Down
12 changes: 12 additions & 0 deletions new-types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare module 'amazon-buddy' {
declare interface Author {
author: string
role: string
}
declare interface Product {
authors: Author[]
main_image: string
title: string
}
declare function asin({ asin: string }): Promise<{ result: Product[] }>
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"@nextui-org/theme": "^2.2.3",
"@nextui-org/user": "^2.0.28",
"@prisma/client": "^5.13.0",
"amazon-buddy": "^2.2.45",
"date-fns": "^3.6.0",
"framer-motion": "^11.1.7",
"neverthrow": "^6.2.1",
Expand Down
Loading

0 comments on commit 711cfea

Please sign in to comment.