mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 11:42:30 +03:00
Add recruit contact info ut (#1987)
Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
parent
27ef52a9c9
commit
903efc5400
@ -71,7 +71,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<div class="flex-col flex-grow min-h-0" class:background-accent-bg-color={!transparent}>
|
<div class="flex-col flex-grow min-h-0" class:background-accent-bg-color={!transparent}>
|
||||||
<Scroller>
|
<Scroller>
|
||||||
<div class="p-10 select-text">
|
<div class="p-10 select-text" id={activity.string.Activity}>
|
||||||
{#if txes}
|
{#if txes}
|
||||||
<Grid column={1} rowGap={1.5}>
|
<Grid column={1} rowGap={1.5}>
|
||||||
{#each txes as tx}
|
{#each txes as tx}
|
||||||
@ -101,7 +101,7 @@
|
|||||||
<Component is={chunter.component.CommentInput} props={{ object }} />
|
<Component is={chunter.component.CommentInput} props={{ object }} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="p-activity select-text">
|
<div class="p-activity select-text" id={activity.string.Activity}>
|
||||||
{#if txes}
|
{#if txes}
|
||||||
<Grid column={1} rowGap={1.5}>
|
<Grid column={1} rowGap={1.5}>
|
||||||
{#each txes as tx}
|
{#each txes as tx}
|
||||||
|
@ -19,6 +19,8 @@ test.describe('recruit tests', () => {
|
|||||||
|
|
||||||
const first = 'Elton-' + generateId(4)
|
const first = 'Elton-' + generateId(4)
|
||||||
const last = 'John-' + generateId(4)
|
const last = 'John-' + generateId(4)
|
||||||
|
const loc = 'Cupertino'
|
||||||
|
const email = 'ej@test.com'
|
||||||
|
|
||||||
const firstName = page.locator('[placeholder="John"]')
|
const firstName = page.locator('[placeholder="John"]')
|
||||||
await firstName.click()
|
await firstName.click()
|
||||||
@ -34,9 +36,25 @@ test.describe('recruit tests', () => {
|
|||||||
|
|
||||||
const location = page.locator('[placeholder="Location"]')
|
const location = page.locator('[placeholder="Location"]')
|
||||||
await location.click()
|
await location.click()
|
||||||
await location.fill('Cupertino')
|
await location.fill(loc)
|
||||||
|
|
||||||
|
await page.locator('[id="presentation\\:string\\:AddSocialLinks"]').click()
|
||||||
|
await page.locator('.antiPopup').locator('text=Email').click()
|
||||||
|
const emailInput = page.locator('[placeholder="john\\.appleseed@apple\\.com"]')
|
||||||
|
await emailInput.fill(email)
|
||||||
|
await emailInput.press('Enter')
|
||||||
|
|
||||||
await page.locator('.antiCard').locator('button:has-text("Create")').click()
|
await page.locator('.antiCard').locator('button:has-text("Create")').click()
|
||||||
|
|
||||||
|
await page.click(`text="${first} ${last}"`)
|
||||||
|
|
||||||
|
await expect(page.locator(`text=${first}`).first()).toBeVisible()
|
||||||
|
await expect(page.locator(`text=${last}`).first()).toBeVisible()
|
||||||
|
await expect(page.locator(`text=${loc}`).first()).toBeVisible()
|
||||||
|
|
||||||
|
const activity = page.locator('[id="activity\\:string\\:Activity"]')
|
||||||
|
await activity.locator('[id="gmail\\:string\\:Email"]').hover()
|
||||||
|
await expect(page.locator(`text=${email}`).first()).toBeVisible()
|
||||||
})
|
})
|
||||||
|
|
||||||
test('create-application', async ({ page }) => {
|
test('create-application', async ({ page }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user