mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 13:34:06 +01:00
test backup (disable)
This commit is contained in:
parent
6cd9c4183a
commit
e0dc3baaeb
20
tests/test-01-business-apply.spec.ts
Normal file
20
tests/test-01-business-apply.spec.ts
Normal file
@ -0,0 +1,20 @@
|
||||
// import { test, expect } from "@playwright/test";
|
||||
// import { login } from "./helpers/login";
|
||||
// import { selectFirstOption } from "./helpers/dropdownUtils";
|
||||
//
|
||||
// test("test", async ({ page }) => {
|
||||
// await login(page, "user");
|
||||
// await page.getByRole('button', { name: 'Businesses' }).hover();
|
||||
// await page.getByRole("link", { name: "Business Apply to raise on on" }).click();
|
||||
//
|
||||
// await selectFirstOption(page, page.locator("button").filter({ hasText: "Select an industry" }));
|
||||
// await selectFirstOption(page, page.locator("button").filter({ hasText: "Select a country" }));
|
||||
// await page.getByPlaceholder("$").fill("999998");
|
||||
// await page.getByRole("button", { name: "Yes" }).first().click();
|
||||
// await page.getByRole("button", { name: "Yes" }).nth(1).click();
|
||||
// await page.getByRole("button", { name: "Yes" }).nth(2).click();
|
||||
// await page.getByPlaceholder('https:// ').fill('https://www.test.md');
|
||||
// await selectFirstOption(page, page.locator("button").filter({ hasText: "Select" }));
|
||||
// await page.locator("#companyName").fill("kasetsart");
|
||||
// await page.getByRole('button', { name: 'Submit application' }).click();
|
||||
// });
|
||||
5
tests/test-02-admin-approve-business.spec.ts.ts
Normal file
5
tests/test-02-admin-approve-business.spec.ts.ts
Normal file
@ -0,0 +1,5 @@
|
||||
// import { test, expect } from '@playwright/test';
|
||||
//
|
||||
// test('test', async ({ page }) => {
|
||||
//
|
||||
// });
|
||||
36
tests/test-03-project-apply.spec.ts
Normal file
36
tests/test-03-project-apply.spec.ts
Normal file
@ -0,0 +1,36 @@
|
||||
// import { test } from '@playwright/test';
|
||||
// import { selectFirstOption } from './helpers/dropdownUtils';
|
||||
// import { login } from './helpers/login';
|
||||
// import path from 'path';
|
||||
//
|
||||
// test('test', async ({ page }) => {
|
||||
// await login(page,'user')
|
||||
// await page.getByRole('button', { name: 'Projects' }).hover();
|
||||
// await page.getByRole('link', { name: 'Projects Start your new' }).click();
|
||||
//
|
||||
// const projectName = page.locator('#projectName')
|
||||
// await projectName.pressSequentially('DummyTester');
|
||||
// await projectName.click();
|
||||
//
|
||||
// const img = path.join(__dirname, 'mockup', '1x1.png');
|
||||
// await page.locator('#projectLogo').click();
|
||||
// await page.locator('#projectLogo').setInputFiles(img);
|
||||
// await page.locator('#projectPhotos').click();
|
||||
// await page.locator('#projectPhotos').setInputFiles(img);
|
||||
//
|
||||
// const projectTypeButton = page.locator('button').filter({ hasText: 'Select a Project type' });
|
||||
// await selectFirstOption(page, projectTypeButton);
|
||||
//
|
||||
// await page.locator('#shortDescription').fill('0123456789');
|
||||
// await page.getByPlaceholder('https:// ').fill('https://www.test.md');
|
||||
// await page.getByPlaceholder('$ 500').fill('499');
|
||||
// await page.getByPlaceholder('$ 1,000,000').fill('99999999');
|
||||
// await page.locator('#deadline').fill('2024-11-29T21:19');
|
||||
//
|
||||
// const tag = page.getByRole('combobox').nth(1);
|
||||
// await selectFirstOption(page, tag);
|
||||
//
|
||||
// await projectName.pressSequentially('1234');
|
||||
//
|
||||
// await page.getByRole('button', { name: 'Submit application' }).click();
|
||||
// });
|
||||
@ -1,35 +0,0 @@
|
||||
import { test } from '@playwright/test';
|
||||
import { selectFirstOption } from './helpers/dropdownUtils';
|
||||
import path from 'path';
|
||||
|
||||
test('test', async ({ page }) => {
|
||||
await page.goto("http://127.0.0.1:3000/");
|
||||
await page.getByRole('button', { name: 'Projects' }).hover();
|
||||
await page.getByRole('link', { name: 'Projects Start your new' }).click();
|
||||
|
||||
const projectName = page.locator('#projectName')
|
||||
await projectName.pressSequentially('DummyTester');
|
||||
await projectName.click();
|
||||
|
||||
const img = path.join(__dirname, 'mockup', '1x1.png');
|
||||
await page.locator('#projectLogo').click();
|
||||
await page.locator('#projectLogo').setInputFiles(img);
|
||||
await page.locator('#projectPhotos').click();
|
||||
await page.locator('#projectPhotos').setInputFiles(img);
|
||||
|
||||
const projectTypeButton = page.locator('button').filter({ hasText: 'Select a Project type' });
|
||||
await selectFirstOption(page, projectTypeButton);
|
||||
|
||||
await page.locator('#shortDescription').fill('0123456789');
|
||||
await page.getByPlaceholder('https:// ').fill('https://www.test.md');
|
||||
await page.getByPlaceholder('$ 500').fill('499');
|
||||
await page.getByPlaceholder('$ 1,000,000').fill('99999999');
|
||||
await page.locator('#deadline').fill('2024-11-29T21:19');
|
||||
|
||||
const tag = page.getByRole('combobox').nth(1);
|
||||
await selectFirstOption(page, tag);
|
||||
|
||||
await projectName.pressSequentially('1234');
|
||||
|
||||
await page.getByRole('button', { name: 'Submit application' }).click();
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user