You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.6 KiB
38 lines
1.6 KiB
import {test, expect} from '../../../helpers/playwright';
|
|
import {AnalyticsGrowthPage} from '../../../helpers/pages/admin';
|
|
|
|
test.describe('Ghost Admin - Growth', () => {
|
|
let growthPage: AnalyticsGrowthPage;
|
|
|
|
test.beforeEach(async ({page}) => {
|
|
growthPage = new AnalyticsGrowthPage(page);
|
|
await growthPage.goto();
|
|
});
|
|
|
|
test('empty top content card - posts and pages', async () => {
|
|
await expect(growthPage.topContent.contentCard).toContainText('Which posts or pages drove the most growth in the last 30 days');
|
|
await expect(growthPage.topContent.contentCard).toContainText('No conversions');
|
|
});
|
|
|
|
test('empty top content card - posts', async () => {
|
|
await growthPage.topContent.postsButton.click();
|
|
|
|
await expect(growthPage.topContent.contentCard).toContainText('Which posts drove the most growth in the last 30 days');
|
|
await expect(growthPage.topContent.contentCard).toContainText('No conversions');
|
|
});
|
|
|
|
test('empty top content card - pages', async () => {
|
|
await growthPage.topContent.pagesButton.click();
|
|
|
|
await expect(growthPage.topContent.contentCard).toContainText('Which pages drove the most growth in the last 30 days');
|
|
await expect(growthPage.topContent.contentCard).toContainText('No conversions');
|
|
});
|
|
|
|
test('empty top content card - sources', async () => {
|
|
await growthPage.topContent.sourcesButton.click();
|
|
|
|
await expect(growthPage.topContent.contentCard).toContainText('How readers found your site in the last 30 days');
|
|
await expect(growthPage.topContent.contentCard).toContainText('No conversions');
|
|
});
|
|
});
|