File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { AIService } from "../services/AIService";
55export class LoginPage extends BasePage {
66 private readonly usernameInput = "#user-name" ;
77 private readonly passwordInput = "#password" ;
8- private readonly loginButton = "#login-button-quebrei " ;
8+ private readonly loginButton = "#login-button" ;
99 private readonly inventoryContainer = "#inventory_container" ;
1010
1111 constructor ( page : Page , ai : AIService ) {
Original file line number Diff line number Diff line change 1+ import { setWorldConstructor , World , IWorldOptions } from '@cucumber/cucumber' ;
2+ import { AllureCucumberWorld } from 'allure-cucumberjs' ;
3+ import { PageManager } from '../../../pages/PageManager' ;
4+ import { Page } from '@playwright/test' ;
5+
6+ // Extendemos a classe do Allure para ganhar os poderes de .label() e .epic()
7+ export class CustomWorld extends AllureCucumberWorld {
8+ // Declaramos as propriedades que usamos nos Hooks para o TypeScript não reclamar
9+ page ?: Page ;
10+ pageManager ?: PageManager ;
11+
12+ constructor ( options : IWorldOptions ) {
13+ super ( options ) ;
14+ }
15+ }
16+
17+ setWorldConstructor ( CustomWorld ) ;
You can’t perform that action at this time.
0 commit comments