File tree 2 files changed +19
-14
lines changed
2 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ describe('RowsX - scrappers tests', () => {
58
58
await appPage . bringToFront ( ) ;
59
59
await appPage . goto ( spec . url , { waitUntil : 'domcontentloaded' } ) ;
60
60
await extensionPage . goto ( extensionUrl , { waitUntil : 'domcontentloaded' } ) ;
61
- await appPage . waitForTimeout ( 200 ) ;
61
+ await appPage . waitForTimeout ( 500 ) ;
62
62
await extensionPage . bringToFront ( ) ;
63
63
const button = await extensionPage . waitForSelector ( '.copy-btn' ) ;
64
64
await button . click ( ) ;
@@ -68,9 +68,9 @@ describe('RowsX - scrappers tests', () => {
68
68
await context . overridePermissions ( spec . url , [ 'clipboard-read' ] ) ;
69
69
const clipboard = await appPage . evaluate ( ( ) => navigator . clipboard . readText ( ) ) ;
70
70
71
+ expect ( clipboard . trimEnd ( ) ) . toMatchSnapshot ( ) ;
72
+
71
73
// close pages
72
74
await appPage . close ( ) ;
73
-
74
- expect ( clipboard . trimEnd ( ) ) . toMatchSnapshot ( ) ;
75
75
} ) ;
76
76
} ) ;
Original file line number Diff line number Diff line change 1
1
url : https://www.booking.com/searchresults*
2
- listElementsQuery : .TableRecords > tbody > tr
2
+ header : Booking.com search results
3
+ listElementsQuery : ' [data-testid="property-card"]'
3
4
elementParser :
4
- - title : Date Movement
5
- query : ' td:nth-child(1) > span '
5
+ - title : Title
6
+ query : ' [data-testid="title"] '
6
7
type : text
7
8
8
- - title : Date Movement
9
- query : ' td :nth-child(2) > div > span '
9
+ - title : Review score
10
+ query : ' [data-testid="review-score"] div :nth-child(1) '
10
11
type : text
11
12
12
- - title : Description
13
- query : ' td:nth-child(3) > div > div:nth-child(2) > div > div:nth-child(2) > a '
13
+ - title : Distance
14
+ query : ' [data-testid="distance"] '
14
15
type : text
15
16
16
- - title : Value
17
- query : ' td:nth-child(4) > div > span '
17
+ - title : Price w/ discounts
18
+ query : ' [data-testid="price-and-discounted-price"] '
18
19
type : text
19
20
20
- - title : Balance
21
- query : ' td:nth-child(5) > div > span '
21
+ - title : Offers
22
+ query : ' [data-testid="gallery-ribbon"] '
22
23
type : text
24
+
25
+ - title : Booking URL
26
+ query : a
27
+ type : clean-url
You can’t perform that action at this time.
0 commit comments