fix: use "starred" instead of "favorite", fix tests
This commit is contained in:
@@ -100,7 +100,10 @@ test('Create new project, then search for it', async ({ page }) => {
|
||||
const finalTitle = standardTitle + finalRandomString;
|
||||
const finalDescription = standardDescription + finalRandomString;
|
||||
const editedTitle = finalTitle + standardEdit;
|
||||
const editedDescription = finalDescription + standardEdit;
|
||||
const editedDescription =
|
||||
finalDescription +
|
||||
standardEdit +
|
||||
" ... and enough text to overflow into the 'Read More' section.";
|
||||
|
||||
// Import user 00
|
||||
await importUser(page, '00');
|
||||
|
||||
@@ -109,7 +109,7 @@ test('New offers for another user', async ({ page }) => {
|
||||
await expect(page.getByText('New Offers To You', { exact: true })).toBeVisible();
|
||||
await page.getByTestId('showOffersToUser').locator('div > svg.fa-chevron-right').click();
|
||||
|
||||
await expect(page.getByText('The offers are marked as viewed')).toBeVisible();
|
||||
await expect(page.getByText('The offers are marked as read')).toBeVisible();
|
||||
await page.getByRole('alert').filter({ hasText: 'Info' }).getByRole('button').click(); // dismiss info alert
|
||||
|
||||
await page.waitForTimeout(1000);
|
||||
@@ -140,7 +140,7 @@ test('New offers for another user', async ({ page }) => {
|
||||
await expect(page.getByText('New Offer To You', { exact: true })).toBeVisible();
|
||||
await page.getByTestId('showOffersToUser').locator('div > svg.fa-chevron-right').click();
|
||||
|
||||
await expect(page.getByText('The offers are marked as viewed')).toBeVisible();
|
||||
await expect(page.getByText('The offers are marked as read')).toBeVisible();
|
||||
await page.getByRole('alert').filter({ hasText: 'Info' }).getByRole('button').click(); // dismiss info alert
|
||||
|
||||
// now see that no offers are shown as new
|
||||
|
||||
Reference in New Issue
Block a user