|
@ -4,6 +4,7 @@ import { importUser, generateNewEthrUser, switchToUser } from './testUtils'; |
|
|
test('New offers for another user', async ({ page }) => { |
|
|
test('New offers for another user', async ({ page }) => { |
|
|
const user01Did = await generateNewEthrUser(page); |
|
|
const user01Did = await generateNewEthrUser(page); |
|
|
await page.goto('./'); |
|
|
await page.goto('./'); |
|
|
|
|
|
await page.getByTestId('closeOnboardingAndFinish').click(); |
|
|
await expect(page.getByTestId('newDirectOffersActivityNumber')).toBeHidden(); |
|
|
await expect(page.getByTestId('newDirectOffersActivityNumber')).toBeHidden(); |
|
|
|
|
|
|
|
|
await importUser(page, '00'); |
|
|
await importUser(page, '00'); |
|
@ -43,7 +44,7 @@ test('New offers for another user', async ({ page }) => { |
|
|
// as user 1, go to the home page and check that two offers are shown as new
|
|
|
// as user 1, go to the home page and check that two offers are shown as new
|
|
|
await switchToUser(page, user01Did); |
|
|
await switchToUser(page, user01Did); |
|
|
await page.goto('./'); |
|
|
await page.goto('./'); |
|
|
await page.getByTestId('closeOnboardingAndFinish').click(); |
|
|
// await page.getByTestId('closeOnboardingAndFinish').click();
|
|
|
let offerNumElem = page.getByTestId('newDirectOffersActivityNumber'); |
|
|
let offerNumElem = page.getByTestId('newDirectOffersActivityNumber'); |
|
|
await expect(offerNumElem).toHaveText('2'); |
|
|
await expect(offerNumElem).toHaveText('2'); |
|
|
|
|
|
|
|
|