Add recruit contact info ut (#1987)

Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
Anna No 2022-06-02 23:54:27 +07:00 committed by GitHub
parent 27ef52a9c9
commit 903efc5400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 3 deletions

View File

@ -71,7 +71,7 @@
{/if}
<div class="flex-col flex-grow min-h-0" class:background-accent-bg-color={!transparent}>
<Scroller>
<div class="p-10 select-text">
<div class="p-10 select-text" id={activity.string.Activity}>
{#if txes}
<Grid column={1} rowGap={1.5}>
{#each txes as tx}
@ -101,7 +101,7 @@
<Component is={chunter.component.CommentInput} props={{ object }} />
</div>
{/if}
<div class="p-activity select-text">
<div class="p-activity select-text" id={activity.string.Activity}>
{#if txes}
<Grid column={1} rowGap={1.5}>
{#each txes as tx}

View File

@ -19,6 +19,8 @@ test.describe('recruit tests', () => {
const first = 'Elton-' + generateId(4)
const last = 'John-' + generateId(4)
const loc = 'Cupertino'
const email = 'ej@test.com'
const firstName = page.locator('[placeholder="John"]')
await firstName.click()
@ -34,9 +36,25 @@ test.describe('recruit tests', () => {
const location = page.locator('[placeholder="Location"]')
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.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 }) => {