File tree 1 file changed +15
-16
lines changed
__checks__/key-user-flows/pages
1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
- import { expect , Locator , Page } from '@playwright/test' ;
1
+ import { Locator , Page } from '@playwright/test' ;
2
2
3
3
export class DanubeItemDetailsPage {
4
- readonly page : Page ;
5
- readonly addToCartButton : Locator ;
6
- readonly detailsContainer : Locator ;
4
+ readonly page : Page ;
5
+ readonly addToCartButton : Locator ;
6
+ readonly detailsContainer : Locator ;
7
7
8
- constructor ( page : Page ) {
9
- this . page = page ;
10
- this . addToCartButton = page . locator ( 'text="add to cart"' ) ;
11
- this . detailsContainer = page . locator ( '.detail' )
12
- }
8
+ constructor ( page : Page ) {
9
+ this . page = page ;
10
+ this . addToCartButton = page . locator ( 'text="add to cart"' ) ;
11
+ this . detailsContainer = page . locator ( '.detail' )
12
+ }
13
13
14
- async addToCart ( ) {
15
- await this . addToCartButton . click ( ) ;
16
- }
17
-
18
- async isActive ( ) {
19
- return this . detailsContainer . isVisible ( ) ;
20
- }
14
+ async addToCart ( ) {
15
+ await this . addToCartButton . click ( ) ;
16
+ }
21
17
18
+ async isActive ( ) {
19
+ return this . detailsContainer . isVisible ( ) ;
20
+ }
22
21
}
You can’t perform that action at this time.
0 commit comments