Robot/BaseRobot.ts is the Robot file developed for the Playwright, extending which we created for example Robot/pages/LoginPageRobot.ts to use them in different testFiles, such as; Robot/pages/LoginPageRobot.ts is used for tests/*/*.spec.ts.
timeout: 50 * 1000,
expect: {
/* Maximum time expect() should wait for the condition to be met.
For example in await expect(locator).toHaveText(); */
timeout: 20000,
},
-
wget https://github.com/allure-framework/allure2/releases/download/2.18.1/allure_2.18.1-1_all.deb -
sudo dpkg -i allure_2.18.1-1_all.deb -
npm i -D @playwright/test allure-playwright -
Either add allure-playwright into playwright.config.ts:
{ reporter: "allure-playwright"; } Or pass the same value via config file:
{ reporter: [["line"], ["allure-playwright"]]; }
-
Generate Allure Report:
allure generate allure-results -o allure-report --clean -
Open Allure Reports:
allure open allure-report