Added some small enchances
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { selectOption } from './helpers/select';
|
||||
import { test, expect, type Page } from '@playwright/test';
|
||||
import { createDatabase } from '../packages/database/dist/index.js';
|
||||
|
||||
@@ -34,8 +35,8 @@ async function fill(page: Page) {
|
||||
await page.locator('#lead-contactName').fill('Test Contact');
|
||||
await page.locator('#lead-contactEmail').fill(email);
|
||||
await page.locator('#lead-website').fill('example.test');
|
||||
await page.locator('#lead-country').selectOption('GB');
|
||||
await page.locator('#lead-industry').selectOption('OTHER');
|
||||
await selectOption(page.locator('#lead-country'), 'GB');
|
||||
await selectOption(page.locator('#lead-industry'), 'OTHER');
|
||||
await page.locator('#lead-estimatedMonthlyVolumeUsd').fill('12500,50');
|
||||
return email;
|
||||
}
|
||||
@@ -84,7 +85,7 @@ for (const language of ['en', 'ru'])
|
||||
.click();
|
||||
await expect(page.locator('#lead-name')).toHaveValue('MerchantFlow browser fixture');
|
||||
await expect(page.locator('#lead-estimatedMonthlyVolumeUsd')).toHaveValue('12500,50');
|
||||
await expect(page.locator('#lead-country')).toHaveValue('GB');
|
||||
await expect(page.locator('#lead-country')).toHaveText(/United Kingdom|Великобритания/);
|
||||
await page
|
||||
.getByRole('button', { name: language === 'en' ? 'English' : 'Русский', exact: true })
|
||||
.click();
|
||||
|
||||
Reference in New Issue
Block a user