File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed
__checks__/key-user-flows/pages Expand file tree Collapse file tree 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' ;
22
33export 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 ;
77
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+ }
1313
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+ }
2117
18+ async isActive ( ) {
19+ return this . detailsContainer . isVisible ( ) ;
20+ }
2221}
You can’t perform that action at this time.
0 commit comments