I need to assign specific browsers and devices to multiple tests. How to indicate this in the test?
- Chromium Android, Pixel 5 device
- WebKit Desktop for Mac
And won't there be a conflict with the fact that I already have settings in the configuration file, but they are much wider than what is needed for these tests?
import { test, expect, Page } from '@playwright/test';
import { regisClientChatWeb } from '../baseStep/registration/regisClientChat';
import { stepToPaymentSelectHideAnswer } from '../baseStep/pay/paySettingsUserChat';
import { billingMobTenkoffPageUserChat } from '../baseStep/pay/billingUserChat';
test('Mob Simple answer with a guarantee of an answer for payment', async ({ page }) => {
await regisClientChatWeb(page);
const selectGarantConsultation = page.locator('text=***');
await selectGarantConsultation.waitFor();
await page.locator('text=****').click();
await stepToPaymentSelectHideAnswer(page);
await billingMobTenkoffPageUserChat(page);
const leadCart = page.locator('text=***');
await leadCart.waitFor();
await page.locator('text=****').click();
await page.screenshot({ path: Date.now() + 'newAnswer1.png', fullPage: true});
// await expect(page).toHaveScreenshot();
});
Thank you for your help