merged-dev

This commit is contained in:
tonyrewin 2022-11-26 01:54:56 +03:00
commit 3c1b2ef550
2 changed files with 9 additions and 13 deletions

View File

@ -9,17 +9,13 @@ const checkUrl = async (page, targetUrl, pageName) => {
await page.screenshot({ path: `${pageName}.jpg` })
}
async function run() {
const browser = await chromium.launch()
const page = await browser.newPage()
const browser = await chromium.launch()
const page = await browser.newPage()
const targetUrl = process.env.ENVIRONMENT_URL || 'https://testing.discours.io'
const targetUrl = process.env.ENVIRONMENT_URL || 'https://testing.discours.io'
await checkUrl(page, targetUrl, 'main')
await checkUrl(page, `${targetUrl}/authors`, 'authors')
await checkUrl(page, `${targetUrl}/topics`, 'topics')
await page.close()
await browser.close()
}
await run()
await checkUrl(page, targetUrl, 'main')
await checkUrl(page, `${targetUrl}/authors`, 'authors')
await checkUrl(page, `${targetUrl}/topics`, 'topics')
await page.close()
await browser.close()

View File

@ -18,7 +18,7 @@ export default gql`
topics
authors
reactions
communities
# communities
}
}
}