RecreationBench / web /nimbric.example /tests /static /content.scripted.spec.ts
VoyagerXHF's picture
Upload folder using huggingface_hub (part 48)
1d8216e verified
Raw History Blame Contribute Delete
76.1 kB
import { test, expect } from '@playwright/test';
test.describe('Functional - homepage', () => {
test('homepage: nav link "nimbric"', async ({ page }) => {
await page.goto('/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - blog', () => {
test('blog: h2 "the nimbric blog"', async ({ page }) => {
await page.goto('/blog/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'the nimbric blog' || t.startsWith('the nimbric blog'))).toBeTruthy();
});
test('blog: h2 "How scam landing pages get bui"', async ({ page }) => {
await page.goto('/blog/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How scam landing pages get built and why they remind me of pizza' || t.startsWith('How scam landing pages get built and why they remind me of pizza'))).toBeTruthy();
});
test('blog: h2 "Keeping JSON Secrets and Crede"', async ({ page }) => {
await page.goto('/blog/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Keeping JSON Secrets and Credential Files Safe in Your Nodejs App' || t.startsWith('Keeping JSON Secrets and Credential Files Safe in Your Nodejs App'))).toBeTruthy();
});
test('blog: nav link "nimbric"', async ({ page }) => {
await page.goto('/blog/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - investors', () => {
test('investors: title matches GT', async ({ page }) => {
await page.goto('/investors/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('investors');
});
test('investors: h2 "Investors"', async ({ page }) => {
await page.goto('/investors/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Investors' || t.startsWith('Investors'))).toBeTruthy();
});
test('investors: h2 "Full Stack Serverless Apps"', async ({ page }) => {
await page.goto('/investors/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Full Stack Serverless Apps' || t.startsWith('Full Stack Serverless Apps'))).toBeTruthy();
});
test('investors: h4 "The stack is shifting"', async ({ page }) => {
await page.goto('/investors/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The stack is shifting' || t.startsWith('The stack is shifting'))).toBeTruthy();
});
test('investors: h4 "Fewer hurdles - ship to market"', async ({ page }) => {
await page.goto('/investors/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fewer hurdles - ship to market sooner' || t.startsWith('Fewer hurdles - ship to market sooner'))).toBeTruthy();
});
test('investors: nav link "nimbric"', async ({ page }) => {
await page.goto('/investors/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - pricing', () => {
test('pricing: title matches GT', async ({ page }) => {
await page.goto('/pricing/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('nimbric pricing');
});
test('pricing: h2 "Pay only for what you use."', async ({ page }) => {
await page.goto('/pricing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pay only for what you use.' || t.startsWith('Pay only for what you use.'))).toBeTruthy();
});
test('pricing: h4 "Usage Based"', async ({ page }) => {
await page.goto('/pricing/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Usage Based' || t.startsWith('Usage Based'))).toBeTruthy();
});
test('pricing: h4 "Team"', async ({ page }) => {
await page.goto('/pricing/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Team' || t.startsWith('Team'))).toBeTruthy();
});
test('pricing: h4 "Enterprise Scale"', async ({ page }) => {
await page.goto('/pricing/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Enterprise Scale' || t.startsWith('Enterprise Scale'))).toBeTruthy();
});
test('pricing: nav link "nimbric"', async ({ page }) => {
await page.goto('/pricing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - privacy_policy', () => {
test('privacy_policy: h2 "privacy policy"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'privacy policy' || t.startsWith('privacy policy'))).toBeTruthy();
});
test('privacy_policy: h3 "1. Introduction"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1. Introduction' || t.startsWith('1. Introduction'))).toBeTruthy();
});
test('privacy_policy: h3 "2. Definitions"', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2. Definitions' || t.startsWith('2. Definitions'))).toBeTruthy();
});
test('privacy_policy: h3 "3. Information Collection and "', async ({ page }) => {
await page.goto('/privacy-policy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '3. Information Collection and Use' || t.startsWith('3. Information Collection and Use'))).toBeTruthy();
});
test('privacy_policy: nav link "nimbric"', async ({ page }) => {
await page.goto('/privacy-policy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - sign_up', () => {
test('sign_up: title matches GT', async ({ page }) => {
await page.goto('/sign-up/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('nimbric.sh');
});
test('sign_up: h1 "Full stack, done"', async ({ page }) => {
await page.goto('/sign-up/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Full stack, done' || t.startsWith('Full stack, done'))).toBeTruthy();
});
test('sign_up: nav link "nimbric"', async ({ page }) => {
await page.goto('/sign-up/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - terms_of_service', () => {
test('terms_of_service: title matches GT', async ({ page }) => {
await page.goto('/terms-of-service/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('nimbric.sh');
});
test('terms_of_service: h2 "terms of service"', async ({ page }) => {
await page.goto('/terms-of-service/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'terms of service' || t.startsWith('terms of service'))).toBeTruthy();
});
test('terms_of_service: h3 "1. Introduction"', async ({ page }) => {
await page.goto('/terms-of-service/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1. Introduction' || t.startsWith('1. Introduction'))).toBeTruthy();
});
test('terms_of_service: h3 "2. Will these Terms ever chang"', async ({ page }) => {
await page.goto('/terms-of-service/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '2. Will these Terms ever change?' || t.startsWith('2. Will these Terms ever change?'))).toBeTruthy();
});
test('terms_of_service: h3 "3. What about my privacy?"', async ({ page }) => {
await page.goto('/terms-of-service/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '3. What about my privacy?' || t.startsWith('3. What about my privacy?'))).toBeTruthy();
});
test('terms_of_service: nav link "nimbric"', async ({ page }) => {
await page.goto('/terms-of-service/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - updates', () => {
test('updates: h2 "product releases"', async ({ page }) => {
await page.goto('/updates/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'product releases' || t.startsWith('product releases'))).toBeTruthy();
});
test('updates: nav link "nimbric"', async ({ page }) => {
await page.goto('/updates/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - vs_heroku', () => {
test('vs_heroku: title matches GT', async ({ page }) => {
await page.goto('/vs-heroku/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('skyforge vs nimbric');
});
test('vs_heroku: h2 "Skyforge vs Nimbric"', async ({ page }) => {
await page.goto('/vs-heroku/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Skyforge vs Nimbric' || t.startsWith('Skyforge vs Nimbric'))).toBeTruthy();
});
test('vs_heroku: h2 "Ship Fullstack Serverless"', async ({ page }) => {
await page.goto('/vs-heroku/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ship Fullstack Serverless' || t.startsWith('Ship Fullstack Serverless'))).toBeTruthy();
});
test('vs_heroku: nav link "nimbric"', async ({ page }) => {
await page.goto('/vs-heroku/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_6_command_line_tools_all_experts_know', () => {
test('posts_6_command_line_tools_all_experts_know: title matches GT', async ({ page }) => {
await page.goto('/posts/6-command-line-tools-all-experts-know/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('6 command line tricks every pro uses');
});
test('posts_6_command_line_tools_all_experts_know: h1 "6 Command Line Tricks Every Pr"', async ({ page }) => {
await page.goto('/posts/6-command-line-tools-all-experts-know/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '6 Command Line Tricks Every Pro Uses' || t.startsWith('6 Command Line Tricks Every Pro Uses'))).toBeTruthy();
});
test('posts_6_command_line_tools_all_experts_know: h2 "| (aka pipe)"', async ({ page }) => {
await page.goto('/posts/6-command-line-tools-all-experts-know/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '| (aka pipe)' || t.startsWith('| (aka pipe)'))).toBeTruthy();
});
test('posts_6_command_line_tools_all_experts_know: h2 "- (aka dash)"', async ({ page }) => {
await page.goto('/posts/6-command-line-tools-all-experts-know/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '- (aka dash)' || t.startsWith('- (aka dash)'))).toBeTruthy();
});
test('posts_6_command_line_tools_all_experts_know: h2 "pbpaste and pbcopy"', async ({ page }) => {
await page.goto('/posts/6-command-line-tools-all-experts-know/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'pbpaste and pbcopy' || t.startsWith('pbpaste and pbcopy'))).toBeTruthy();
});
test('posts_6_command_line_tools_all_experts_know: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/6-command-line-tools-all-experts-know/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_aws_budget_alerts_based_on_cost', () => {
test('posts_aws_budget_alerts_based_on_cost: title matches GT', async ({ page }) => {
await page.goto('/posts/aws-budget-alerts-based-on-cost/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('zentari budget alerts based on cost');
});
test('posts_aws_budget_alerts_based_on_cost: h1 "Zentari Budget Alerts Based on"', async ({ page }) => {
await page.goto('/posts/aws-budget-alerts-based-on-cost/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Zentari Budget Alerts Based on Cost' || t.startsWith('Zentari Budget Alerts Based on Cost'))).toBeTruthy();
});
test('posts_aws_budget_alerts_based_on_cost: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/aws-budget-alerts-based-on-cost/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_aws_budget_alerts_based_on_cost: h2 "Fork and ship a hello world pr"', async ({ page }) => {
await page.goto('/posts/aws-budget-alerts-based-on-cost/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and ship a hello world project onto Nimbric in less time than it took to read this page. Feel t' || t.startsWith('Fork and ship a hello world project onto Nimbric in less time than it took to read this page. Feel t'))).toBeTruthy();
});
test('posts_aws_budget_alerts_based_on_cost: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/aws-budget-alerts-based-on-cost/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_aws_s3_why_sometimes_you_should_press_the_100k_dollar_button', () => {
test('posts_aws_s3_why_sometimes_you_should_press_the_100k_dollar_button: title matches GT', async ({ page }) => {
await page.goto('/posts/aws-s3-why-sometimes-you-should-press-the-100k-dollar-button/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('zentari blobstore');
});
test('posts_aws_s3_why_sometimes_you_should_press_the_100k_dollar_button: h1 "Zentari Blobstore: Why sometim"', async ({ page }) => {
await page.goto('/posts/aws-s3-why-sometimes-you-should-press-the-100k-dollar-button/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Zentari Blobstore: Why sometimes you should press the \$100k button' || t.startsWith('Zentari Blobstore: Why sometimes you should press the \$100k button'))).toBeTruthy();
});
test('posts_aws_s3_why_sometimes_you_should_press_the_100k_dollar_button: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/aws-s3-why-sometimes-you-should-press-the-100k-dollar-button/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_aws_s3_why_sometimes_you_should_press_the_100k_dollar_button: h2 "Fork and ship a hello world pr"', async ({ page }) => {
await page.goto('/posts/aws-s3-why-sometimes-you-should-press-the-100k-dollar-button/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and ship a hello world project onto Nimbric in less time than it took to read this page. Feel t' || t.startsWith('Fork and ship a hello world project onto Nimbric in less time than it took to read this page. Feel t'))).toBeTruthy();
});
test('posts_aws_s3_why_sometimes_you_should_press_the_100k_dollar_button: h3 "The managed-services era has m"', async ({ page }) => {
await page.goto('/posts/aws-s3-why-sometimes-you-should-press-the-100k-dollar-button/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The managed-services era has made good on its grand bargain .' || t.startsWith('The managed-services era has made good on its grand bargain .'))).toBeTruthy();
});
test('posts_aws_s3_why_sometimes_you_should_press_the_100k_dollar_button: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/aws-s3-why-sometimes-you-should-press-the-100k-dollar-button/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_aws_tools_suck', () => {
test('posts_aws_tools_suck: title matches GT', async ({ page }) => {
await page.goto('/posts/aws-tools-suck/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('zentari tools suck');
});
test('posts_aws_tools_suck: h1 "Zentari Tools Suck"', async ({ page }) => {
await page.goto('/posts/aws-tools-suck/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Zentari Tools Suck' || t.startsWith('Zentari Tools Suck'))).toBeTruthy();
});
test('posts_aws_tools_suck: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/aws-tools-suck/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_aws_tools_suck: h2 "Spin up and ship a hello world"', async ({ page }) => {
await page.goto('/posts/aws-tools-suck/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the' || t.startsWith('Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the'))).toBeTruthy();
});
test('posts_aws_tools_suck: h3 "tldr"', async ({ page }) => {
await page.goto('/posts/aws-tools-suck/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'tldr' || t.startsWith('tldr'))).toBeTruthy();
});
test('posts_aws_tools_suck: nav link "Nimbric"', async ({ page }) => {
await page.goto('/posts/aws-tools-suck/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimbric' || t.startsWith('Nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_build_a_linktree_clone_on_nimbric', () => {
test('posts_build_a_linktree_clone_on_nimbric: title matches GT', async ({ page }) => {
await page.goto('/posts/build-a-linktree-clone-on-nimbric/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('nimlinks');
});
test('posts_build_a_linktree_clone_on_nimbric: h2 "Nimlinks made simple!"', async ({ page }) => {
await page.goto('/posts/build-a-linktree-clone-on-nimbric/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimlinks made simple!' || t.startsWith('Nimlinks made simple!'))).toBeTruthy();
});
test('posts_build_a_linktree_clone_on_nimbric: h2 "Subscribe for updates"', async ({ page }) => {
await page.goto('/posts/build-a-linktree-clone-on-nimbric/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe for updates' || t.startsWith('Subscribe for updates'))).toBeTruthy();
});
test('posts_build_a_linktree_clone_on_nimbric: h2 "Spin up and ship a hello world"', async ({ page }) => {
await page.goto('/posts/build-a-linktree-clone-on-nimbric/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the' || t.startsWith('Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the'))).toBeTruthy();
});
test('posts_build_a_linktree_clone_on_nimbric: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/build-a-linktree-clone-on-nimbric/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_common_mistakes_for_first_time_deploy', () => {
test('posts_common_mistakes_for_first_time_deploy: title matches GT', async ({ page }) => {
await page.goto('/posts/common-mistakes-for-first-time-deploy/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('common mistakes to dodge on your first d');
});
test('posts_common_mistakes_for_first_time_deploy: h1 "Common Mistakes to Dodge on Yo"', async ({ page }) => {
await page.goto('/posts/common-mistakes-for-first-time-deploy/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Common Mistakes to Dodge on Your First Deploy to Nimbric' || t.startsWith('Common Mistakes to Dodge on Your First Deploy to Nimbric'))).toBeTruthy();
});
test('posts_common_mistakes_for_first_time_deploy: h2 "Subscribe for updates"', async ({ page }) => {
await page.goto('/posts/common-mistakes-for-first-time-deploy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe for updates' || t.startsWith('Subscribe for updates'))).toBeTruthy();
});
test('posts_common_mistakes_for_first_time_deploy: h2 "Spin up and ship a hello world"', async ({ page }) => {
await page.goto('/posts/common-mistakes-for-first-time-deploy/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the' || t.startsWith('Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the'))).toBeTruthy();
});
test('posts_common_mistakes_for_first_time_deploy: h3 "Here\'s the setup:"', async ({ page }) => {
await page.goto('/posts/common-mistakes-for-first-time-deploy/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Here\'s the setup:' || t.startsWith('Here\'s the setup:'))).toBeTruthy();
});
test('posts_common_mistakes_for_first_time_deploy: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/common-mistakes-for-first-time-deploy/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_considerations_for_serverless_active_active_routing', () => {
test('posts_considerations_for_serverless_active_active_routing: title matches GT', async ({ page }) => {
await page.goto('/posts/considerations-for-serverless-active-active-routing/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('notes on serverless active');
});
test('posts_considerations_for_serverless_active_active_routing: h1 "Serverless Active-Active Consi"', async ({ page }) => {
await page.goto('/posts/considerations-for-serverless-active-active-routing/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Serverless Active-Active Considerations: Routing' || t.startsWith('Serverless Active-Active Considerations: Routing'))).toBeTruthy();
});
test('posts_considerations_for_serverless_active_active_routing: h2 "Routing"', async ({ page }) => {
await page.goto('/posts/considerations-for-serverless-active-active-routing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Routing' || t.startsWith('Routing'))).toBeTruthy();
});
test('posts_considerations_for_serverless_active_active_routing: h2 "Subscribe for updates"', async ({ page }) => {
await page.goto('/posts/considerations-for-serverless-active-active-routing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe for updates' || t.startsWith('Subscribe for updates'))).toBeTruthy();
});
test('posts_considerations_for_serverless_active_active_routing: h2 "Spin up and ship a hello world"', async ({ page }) => {
await page.goto('/posts/considerations-for-serverless-active-active-routing/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the' || t.startsWith('Spin up and ship a hello world app to Nimbric in less time than it took to scroll this page. See the'))).toBeTruthy();
});
test('posts_considerations_for_serverless_active_active_routing: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/considerations-for-serverless-active-active-routing/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_nimbric_is_shutting_down', () => {
test('posts_nimbric_is_shutting_down: title matches GT', async ({ page }) => {
await page.goto('/posts/nimbric-is-shutting-down/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('nimbric is winding down');
});
test('posts_nimbric_is_shutting_down: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/nimbric-is-shutting-down/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_nimbric_is_shutting_down: h2 "Fork and deploy a hello world "', async ({ page }) => {
await page.goto('/posts/nimbric-is-shutting-down/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel' || t.startsWith('Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel'))).toBeTruthy();
});
test('posts_nimbric_is_shutting_down: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/nimbric-is-shutting-down/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_dads_advice_for_how_to_live', () => {
test('posts_dads_advice_for_how_to_live: title matches GT', async ({ page }) => {
await page.goto('/posts/dads-advice-for-how-to-live/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('dad\'s rules for a good life');
});
test('posts_dads_advice_for_how_to_live: h1 "My Father\'s Rules for Living"', async ({ page }) => {
await page.goto('/posts/dads-advice-for-how-to-live/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'My Father\'s Rules for Living' || t.startsWith('My Father\'s Rules for Living'))).toBeTruthy();
});
test('posts_dads_advice_for_how_to_live: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/dads-advice-for-how-to-live/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_dads_advice_for_how_to_live: h2 "Fork and deploy a hello world "', async ({ page }) => {
await page.goto('/posts/dads-advice-for-how-to-live/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel' || t.startsWith('Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel'))).toBeTruthy();
});
test('posts_dads_advice_for_how_to_live: h3 "1. Be there"', async ({ page }) => {
await page.goto('/posts/dads-advice-for-how-to-live/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '1. Be there' || t.startsWith('1. Be there'))).toBeTruthy();
});
test('posts_dads_advice_for_how_to_live: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/dads-advice-for-how-to-live/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_deploying_static_sites', () => {
test('posts_deploying_static_sites: title matches GT', async ({ page }) => {
await page.goto('/posts/deploying-static-sites/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('you can deploy static sites on nimbric');
});
test('posts_deploying_static_sites: h1 "You Can Deploy Static Sites on"', async ({ page }) => {
await page.goto('/posts/deploying-static-sites/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'You Can Deploy Static Sites on Nimbric' || t.startsWith('You Can Deploy Static Sites on Nimbric'))).toBeTruthy();
});
test('posts_deploying_static_sites: h2 "Did you know you had choices?"', async ({ page }) => {
await page.goto('/posts/deploying-static-sites/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Did you know you had choices?' || t.startsWith('Did you know you had choices?'))).toBeTruthy();
});
test('posts_deploying_static_sites: h2 "Static Sites"', async ({ page }) => {
await page.goto('/posts/deploying-static-sites/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Static Sites' || t.startsWith('Static Sites'))).toBeTruthy();
});
test('posts_deploying_static_sites: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/deploying-static-sites/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_deploying_static_sites: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/deploying-static-sites/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_how_a_phishing_scampage_works', () => {
test('posts_how_a_phishing_scampage_works: title matches GT', async ({ page }) => {
await page.goto('/posts/how-a-phishing-scampage-works/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('how a phishing scampage works and what i');
});
test('posts_how_a_phishing_scampage_works: h1 "How a phishing scampage works "', async ({ page }) => {
await page.goto('/posts/how-a-phishing-scampage-works/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'How a phishing scampage works and what it has to do with pizza' || t.startsWith('How a phishing scampage works and what it has to do with pizza'))).toBeTruthy();
});
test('posts_how_a_phishing_scampage_works: h2 "Phishing"', async ({ page }) => {
await page.goto('/posts/how-a-phishing-scampage-works/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Phishing' || t.startsWith('Phishing'))).toBeTruthy();
});
test('posts_how_a_phishing_scampage_works: h2 "Mitigation"', async ({ page }) => {
await page.goto('/posts/how-a-phishing-scampage-works/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Mitigation' || t.startsWith('Mitigation'))).toBeTruthy();
});
test('posts_how_a_phishing_scampage_works: h2 "The mystery"', async ({ page }) => {
await page.goto('/posts/how-a-phishing-scampage-works/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The mystery' || t.startsWith('The mystery'))).toBeTruthy();
});
test('posts_how_a_phishing_scampage_works: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/how-a-phishing-scampage-works/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_how_to_build_a_telegram_bot', () => {
test('posts_how_to_build_a_telegram_bot: title matches GT', async ({ page }) => {
await page.goto('/posts/how-to-build-a-telegram-bot/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('building a chatly bot with typescript & ');
});
test('posts_how_to_build_a_telegram_bot: h1 "Building a Chatly Bot with Typ"', async ({ page }) => {
await page.goto('/posts/how-to-build-a-telegram-bot/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Building a Chatly Bot with Typescript & Node.js' || t.startsWith('Building a Chatly Bot with Typescript & Node.js'))).toBeTruthy();
});
test('posts_how_to_build_a_telegram_bot: h2 "The Rundown"', async ({ page }) => {
await page.goto('/posts/how-to-build-a-telegram-bot/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Rundown' || t.startsWith('The Rundown'))).toBeTruthy();
});
test('posts_how_to_build_a_telegram_bot: h2 "Wire up basic commands"', async ({ page }) => {
await page.goto('/posts/how-to-build-a-telegram-bot/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Wire up basic commands' || t.startsWith('Wire up basic commands'))).toBeTruthy();
});
test('posts_how_to_build_a_telegram_bot: h2 "Craft Inline Keyboards"', async ({ page }) => {
await page.goto('/posts/how-to-build-a-telegram-bot/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Craft Inline Keyboards' || t.startsWith('Craft Inline Keyboards'))).toBeTruthy();
});
test('posts_how_to_build_a_telegram_bot: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/how-to-build-a-telegram-bot/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_how_to_debug', () => {
test('posts_how_to_debug: title matches GT', async ({ page }) => {
await page.goto('/posts/how-to-debug/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('cracking bugs');
});
test('posts_how_to_debug: h2 "Choose to Learn"', async ({ page }) => {
await page.goto('/posts/how-to-debug/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Choose to Learn' || t.startsWith('Choose to Learn'))).toBeTruthy();
});
test('posts_how_to_debug: h2 "Hunt the Error"', async ({ page }) => {
await page.goto('/posts/how-to-debug/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Hunt the Error' || t.startsWith('Hunt the Error'))).toBeTruthy();
});
test('posts_how_to_debug: h2 "Pare Down"', async ({ page }) => {
await page.goto('/posts/how-to-debug/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Pare Down' || t.startsWith('Pare Down'))).toBeTruthy();
});
test('posts_how_to_debug: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/how-to-debug/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_how_to_fail_at_serverless_serverless_is_stateless', () => {
test('posts_how_to_fail_at_serverless_serverless_is_stateless: title matches GT', async ({ page }) => {
await page.goto('/posts/how-to-fail-at-serverless-serverless-is-stateless/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('serverless gotchas');
});
test('posts_how_to_fail_at_serverless_serverless_is_stateless: h1 "Serverless Gotchas: When State"', async ({ page }) => {
await page.goto('/posts/how-to-fail-at-serverless-serverless-is-stateless/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Serverless Gotchas: When Stateless Isn\'t Free' || t.startsWith('Serverless Gotchas: When Stateless Isn\'t Free'))).toBeTruthy();
});
test('posts_how_to_fail_at_serverless_serverless_is_stateless: h2 "Stateless, In Theory"', async ({ page }) => {
await page.goto('/posts/how-to-fail-at-serverless-serverless-is-stateless/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Stateless, In Theory' || t.startsWith('Stateless, In Theory'))).toBeTruthy();
});
test('posts_how_to_fail_at_serverless_serverless_is_stateless: h2 "The Failure"', async ({ page }) => {
await page.goto('/posts/how-to-fail-at-serverless-serverless-is-stateless/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Failure' || t.startsWith('The Failure'))).toBeTruthy();
});
test('posts_how_to_fail_at_serverless_serverless_is_stateless: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/how-to-fail-at-serverless-serverless-is-stateless/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_how_to_fail_at_serverless_serverless_is_stateless: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/how-to-fail-at-serverless-serverless-is-stateless/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_how_to_get_your_first_developer_job', () => {
test('posts_how_to_get_your_first_developer_job: title matches GT', async ({ page }) => {
await page.goto('/posts/how-to-get-your-first-developer-job/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('landing your first job as a developer');
});
test('posts_how_to_get_your_first_developer_job: h1 "Landing Your First Developer R"', async ({ page }) => {
await page.goto('/posts/how-to-get-your-first-developer-job/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Landing Your First Developer Role' || t.startsWith('Landing Your First Developer Role'))).toBeTruthy();
});
test('posts_how_to_get_your_first_developer_job: h2 "Coderail timeline"', async ({ page }) => {
await page.goto('/posts/how-to-get-your-first-developer-job/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Coderail timeline' || t.startsWith('Coderail timeline'))).toBeTruthy();
});
test('posts_how_to_get_your_first_developer_job: h2 "Getting the Why Right"', async ({ page }) => {
await page.goto('/posts/how-to-get-your-first-developer-job/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Getting the Why Right' || t.startsWith('Getting the Why Right'))).toBeTruthy();
});
test('posts_how_to_get_your_first_developer_job: h2 "Storytelling"', async ({ page }) => {
await page.goto('/posts/how-to-get-your-first-developer-job/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Storytelling' || t.startsWith('Storytelling'))).toBeTruthy();
});
test('posts_how_to_get_your_first_developer_job: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/how-to-get-your-first-developer-job/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_how_to_go_from_0_to_1', () => {
test('posts_how_to_go_from_0_to_1: title matches GT', async ({ page }) => {
await page.goto('/posts/how-to-go-from-0-to-1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('going from 0 to 1');
});
test('posts_how_to_go_from_0_to_1: h1 "Going from 0 to 1 - Finding ea"', async ({ page }) => {
await page.goto('/posts/how-to-go-from-0-to-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Going from 0 to 1 - Finding early users for a new product or service' || t.startsWith('Going from 0 to 1 - Finding early users for a new product or service'))).toBeTruthy();
});
test('posts_how_to_go_from_0_to_1: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/how-to-go-from-0-to-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_how_to_go_from_0_to_1: h2 "Fork a hello world project and"', async ({ page }) => {
await page.goto('/posts/how-to-go-from-0-to-1/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork a hello world project and ship it live on Nimbric in less time than it took you to scroll this' || t.startsWith('Fork a hello world project and ship it live on Nimbric in less time than it took you to scroll this'))).toBeTruthy();
});
test('posts_how_to_go_from_0_to_1: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/how-to-go-from-0-to-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_how_to_pass_9_aws_certifications_in_14_months', () => {
test('posts_how_to_pass_9_aws_certifications_in_14_months: title matches GT', async ({ page }) => {
await page.goto('/posts/how-to-pass-9-aws-certifications-in-14-months/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('passing 9 zentari certifications in 14 m');
});
test('posts_how_to_pass_9_aws_certifications_in_14_months: h1 "Passing 9 Zentari Certificatio"', async ({ page }) => {
await page.goto('/posts/how-to-pass-9-aws-certifications-in-14-months/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Passing 9 Zentari Certifications Across 14 Months' || t.startsWith('Passing 9 Zentari Certifications Across 14 Months'))).toBeTruthy();
});
test('posts_how_to_pass_9_aws_certifications_in_14_months: h1 "tldr: The Plan"', async ({ page }) => {
await page.goto('/posts/how-to-pass-9-aws-certifications-in-14-months/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'tldr: The Plan' || t.startsWith('tldr: The Plan'))).toBeTruthy();
});
test('posts_how_to_pass_9_aws_certifications_in_14_months: h1 "Why"', async ({ page }) => {
await page.goto('/posts/how-to-pass-9-aws-certifications-in-14-months/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why' || t.startsWith('Why'))).toBeTruthy();
});
test('posts_how_to_pass_9_aws_certifications_in_14_months: h1 "Which"', async ({ page }) => {
await page.goto('/posts/how-to-pass-9-aws-certifications-in-14-months/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Which' || t.startsWith('Which'))).toBeTruthy();
});
test('posts_how_to_pass_9_aws_certifications_in_14_months: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/how-to-pass-9-aws-certifications-in-14-months/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_its_always_sunny_in_us_east_1', () => {
test('posts_its_always_sunny_in_us_east_1: title matches GT', async ({ page }) => {
await page.goto('/posts/its-always-sunny-in-us-east-1/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('forever sunny in us');
});
test('posts_its_always_sunny_in_us_east_1: h1 "Forever Sunny in us-east-1: Th"', async ({ page }) => {
await page.goto('/posts/its-always-sunny-in-us-east-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Forever Sunny in us-east-1: The Crew Takes On Business Continuity' || t.startsWith('Forever Sunny in us-east-1: The Crew Takes On Business Continuity'))).toBeTruthy();
});
test('posts_its_always_sunny_in_us_east_1: h1 "Meltdown 🔥"', async ({ page }) => {
await page.goto('/posts/its-always-sunny-in-us-east-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Meltdown 🔥' || t.startsWith('Meltdown 🔥'))).toBeTruthy();
});
test('posts_its_always_sunny_in_us_east_1: h1 "Recovery Playbook"', async ({ page }) => {
await page.goto('/posts/its-always-sunny-in-us-east-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Recovery Playbook' || t.startsWith('Recovery Playbook'))).toBeTruthy();
});
test('posts_its_always_sunny_in_us_east_1: h1 "Alright, do we run it?"', async ({ page }) => {
await page.goto('/posts/its-always-sunny-in-us-east-1/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === '"Alright, do we run it?"' || t.startsWith('"Alright, do we run it?"'))).toBeTruthy();
});
test('posts_its_always_sunny_in_us_east_1: nav link "Nimbric"', async ({ page }) => {
await page.goto('/posts/its-always-sunny-in-us-east-1/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimbric' || t.startsWith('Nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_managing_service_account_credentials_json_files', () => {
test('posts_managing_service_account_credentials_json_files: title matches GT', async ({ page }) => {
await page.goto('/posts/managing-service-account-credentials-json-files/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('handling service account json files or f');
});
test('posts_managing_service_account_credentials_json_files: h1 "Handling Service Account JSON "', async ({ page }) => {
await page.goto('/posts/managing-service-account-credentials-json-files/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Handling Service Account JSON Files or Files with Secrets in Nodejs' || t.startsWith('Handling Service Account JSON Files or Files with Secrets in Nodejs'))).toBeTruthy();
});
test('posts_managing_service_account_credentials_json_files: h1 "Files with Secrets in Nodejs"', async ({ page }) => {
await page.goto('/posts/managing-service-account-credentials-json-files/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Files with Secrets in Nodejs' || t.startsWith('Files with Secrets in Nodejs'))).toBeTruthy();
});
test('posts_managing_service_account_credentials_json_files: h1 "tldr"', async ({ page }) => {
await page.goto('/posts/managing-service-account-credentials-json-files/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'tldr' || t.startsWith('tldr'))).toBeTruthy();
});
test('posts_managing_service_account_credentials_json_files: h2 "Why a Service Account JSON Fil"', async ({ page }) => {
await page.goto('/posts/managing-service-account-credentials-json-files/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why a Service Account JSON File Is Needed for Meridian and/or Sparkbase' || t.startsWith('Why a Service Account JSON File Is Needed for Meridian and/or Sparkbase'))).toBeTruthy();
});
test('posts_managing_service_account_credentials_json_files: nav link "Nimbric"', async ({ page }) => {
await page.goto('/posts/managing-service-account-credentials-json-files/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimbric' || t.startsWith('Nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_take_your_file_system_to_the_cloud', () => {
test('posts_take_your_file_system_to_the_cloud: title matches GT', async ({ page }) => {
await page.goto('/posts/take-your-file-system-to-the-cloud/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('bring your file system to the cloud with');
});
test('posts_take_your_file_system_to_the_cloud: h2 "Node handles files, let\'s leve"', async ({ page }) => {
await page.goto('/posts/take-your-file-system-to-the-cloud/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Node handles files, let\'s level it up' || t.startsWith('Node handles files, let\'s level it up'))).toBeTruthy();
});
test('posts_take_your_file_system_to_the_cloud: h2 "Subscribe to our posts"', async ({ page }) => {
await page.goto('/posts/take-your-file-system-to-the-cloud/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to our posts' || t.startsWith('Subscribe to our posts'))).toBeTruthy();
});
test('posts_take_your_file_system_to_the_cloud: h2 "Fork and deploy a hello world "', async ({ page }) => {
await page.goto('/posts/take-your-file-system-to-the-cloud/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel' || t.startsWith('Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel'))).toBeTruthy();
});
test('posts_take_your_file_system_to_the_cloud: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/take-your-file-system-to-the-cloud/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_technical_debt_a_field_guide', () => {
test('posts_technical_debt_a_field_guide: title matches GT', async ({ page }) => {
await page.goto('/posts/technical-debt-a-field-guide/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('technical debt');
});
test('posts_technical_debt_a_field_guide: h1 "Technical Debt: A Field Guide"', async ({ page }) => {
await page.goto('/posts/technical-debt-a-field-guide/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Technical Debt: A Field Guide' || t.startsWith('Technical Debt: A Field Guide'))).toBeTruthy();
});
test('posts_technical_debt_a_field_guide: h1 "Dimensions of Debt"', async ({ page }) => {
await page.goto('/posts/technical-debt-a-field-guide/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Dimensions of Debt' || t.startsWith('Dimensions of Debt'))).toBeTruthy();
});
test('posts_technical_debt_a_field_guide: h2 "Change time cost"', async ({ page }) => {
await page.goto('/posts/technical-debt-a-field-guide/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Change time cost' || t.startsWith('Change time cost'))).toBeTruthy();
});
test('posts_technical_debt_a_field_guide: h2 "Runtime cost"', async ({ page }) => {
await page.goto('/posts/technical-debt-a-field-guide/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Runtime cost' || t.startsWith('Runtime cost'))).toBeTruthy();
});
test('posts_technical_debt_a_field_guide: nav link "Nimbric"', async ({ page }) => {
await page.goto('/posts/technical-debt-a-field-guide/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Nimbric' || t.startsWith('Nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_the_unbuilt_software_trap', () => {
test('posts_the_unbuilt_software_trap: title matches GT', async ({ page }) => {
await page.goto('/posts/the-unbuilt-software-trap/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('the software you never build');
});
test('posts_the_unbuilt_software_trap: h1 "The Software You Never Build"', async ({ page }) => {
await page.goto('/posts/the-unbuilt-software-trap/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The Software You Never Build' || t.startsWith('The Software You Never Build'))).toBeTruthy();
});
test('posts_the_unbuilt_software_trap: h2 "Everybody fails at the softwar"', async ({ page }) => {
await page.goto('/posts/the-unbuilt-software-trap/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Everybody fails at the software they leave' || t.startsWith('Everybody fails at the software they leave'))).toBeTruthy();
});
test('posts_the_unbuilt_software_trap: h2 "Never miss a post"', async ({ page }) => {
await page.goto('/posts/the-unbuilt-software-trap/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Never miss a post' || t.startsWith('Never miss a post'))).toBeTruthy();
});
test('posts_the_unbuilt_software_trap: h2 "Fork and ship a hello world pr"', async ({ page }) => {
await page.goto('/posts/the-unbuilt-software-trap/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and ship a hello world project on Nimbric in less time than it took to read this page. See the' || t.startsWith('Fork and ship a hello world project on Nimbric in less time than it took to read this page. See the'))).toBeTruthy();
});
test('posts_the_unbuilt_software_trap: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/the-unbuilt-software-trap/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_the_vc_business_model_and_why_vcs_invest', () => {
test('posts_the_vc_business_model_and_why_vcs_invest: title matches GT', async ({ page }) => {
await page.goto('/posts/the-vc-business-model-and-why-vcs-invest/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('inside the vc model and why vcs invest');
});
test('posts_the_vc_business_model_and_why_vcs_invest: h1 "Inside the VC Model and Why VC"', async ({ page }) => {
await page.goto('/posts/the-vc-business-model-and-why-vcs-invest/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Inside the VC Model and Why VCs Invest' || t.startsWith('Inside the VC Model and Why VCs Invest'))).toBeTruthy();
});
test('posts_the_vc_business_model_and_why_vcs_invest: h1 "The VC funding model"', async ({ page }) => {
await page.goto('/posts/the-vc-business-model-and-why-vcs-invest/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The VC funding model' || t.startsWith('The VC funding model'))).toBeTruthy();
});
test('posts_the_vc_business_model_and_why_vcs_invest: h1 "The life of a single VC fund"', async ({ page }) => {
await page.goto('/posts/the-vc-business-model-and-why-vcs-invest/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'The life of a single VC fund' || t.startsWith('The life of a single VC fund'))).toBeTruthy();
});
test('posts_the_vc_business_model_and_why_vcs_invest: h1 "Outcome Fit"', async ({ page }) => {
await page.goto('/posts/the-vc-business-model-and-why-vcs-invest/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Outcome Fit' || t.startsWith('Outcome Fit'))).toBeTruthy();
});
test('posts_the_vc_business_model_and_why_vcs_invest: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/the-vc-business-model-and-why-vcs-invest/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_users_are_the_best_feature', () => {
test('posts_users_are_the_best_feature: title matches GT', async ({ page }) => {
await page.goto('/posts/users-are-the-best-feature/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('users are your best feature');
});
test('posts_users_are_the_best_feature: h2 "Never miss a post"', async ({ page }) => {
await page.goto('/posts/users-are-the-best-feature/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Never miss a post' || t.startsWith('Never miss a post'))).toBeTruthy();
});
test('posts_users_are_the_best_feature: h2 "Fork and ship a hello world pr"', async ({ page }) => {
await page.goto('/posts/users-are-the-best-feature/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and ship a hello world project on Nimbric in less time than it took to read this page. See the' || t.startsWith('Fork and ship a hello world project on Nimbric in less time than it took to read this page. See the'))).toBeTruthy();
});
test('posts_users_are_the_best_feature: h4 "So what now?"', async ({ page }) => {
await page.goto('/posts/users-are-the-best-feature/');
const texts = (await page.locator('h4').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'So what now?' || t.startsWith('So what now?'))).toBeTruthy();
});
test('posts_users_are_the_best_feature: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/users-are-the-best-feature/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_we_sound_like_idiots_when_we_talk_about_technical_debt', () => {
test('posts_we_sound_like_idiots_when_we_talk_about_technical_debt: title matches GT', async ({ page }) => {
await page.goto('/posts/we-sound-like-idiots-when-we-talk-about-technical-debt/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('why we sound clueless talking about tech');
});
test('posts_we_sound_like_idiots_when_we_talk_about_technical_debt: h1 "Why we sound clueless talking "', async ({ page }) => {
await page.goto('/posts/we-sound-like-idiots-when-we-talk-about-technical-debt/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why we sound clueless talking about technical debt' || t.startsWith('Why we sound clueless talking about technical debt'))).toBeTruthy();
});
test('posts_we_sound_like_idiots_when_we_talk_about_technical_debt: h2 "Never miss a post"', async ({ page }) => {
await page.goto('/posts/we-sound-like-idiots-when-we-talk-about-technical-debt/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Never miss a post' || t.startsWith('Never miss a post'))).toBeTruthy();
});
test('posts_we_sound_like_idiots_when_we_talk_about_technical_debt: h2 "Fork and ship a hello world pr"', async ({ page }) => {
await page.goto('/posts/we-sound-like-idiots-when-we-talk-about-technical-debt/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and ship a hello world project on Nimbric in less time than it took to read this page. See the' || t.startsWith('Fork and ship a hello world project on Nimbric in less time than it took to read this page. See the'))).toBeTruthy();
});
test('posts_we_sound_like_idiots_when_we_talk_about_technical_debt: h3 "Ever Heard This Before?"', async ({ page }) => {
await page.goto('/posts/we-sound-like-idiots-when-we-talk-about-technical-debt/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ever Heard This Before?' || t.startsWith('Ever Heard This Before?'))).toBeTruthy();
});
test('posts_we_sound_like_idiots_when_we_talk_about_technical_debt: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/we-sound-like-idiots-when-we-talk-about-technical-debt/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_why_i_started_nimbric', () => {
test('posts_why_i_started_nimbric: title matches GT', async ({ page }) => {
await page.goto('/posts/why-i-started-nimbric/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('why i built nimbric');
});
test('posts_why_i_started_nimbric: h1 "Why I Built Nimbric"', async ({ page }) => {
await page.goto('/posts/why-i-started-nimbric/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Why I Built Nimbric' || t.startsWith('Why I Built Nimbric'))).toBeTruthy();
});
test('posts_why_i_started_nimbric: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/why-i-started-nimbric/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_why_i_started_nimbric: h2 "Fork and deploy a hello world "', async ({ page }) => {
await page.goto('/posts/why-i-started-nimbric/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel' || t.startsWith('Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel'))).toBeTruthy();
});
test('posts_why_i_started_nimbric: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/why-i-started-nimbric/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - posts_write_shitty_code', () => {
test('posts_write_shitty_code: title matches GT', async ({ page }) => {
await page.goto('/posts/write-shitty-code/');
const t = (await page.title()).toLowerCase();
expect(t).toContain('ship messy code');
});
test('posts_write_shitty_code: h1 "Ship Messy Code - and why you "', async ({ page }) => {
await page.goto('/posts/write-shitty-code/');
const texts = (await page.locator('h1').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Ship Messy Code - and why you should feel great doing it' || t.startsWith('Ship Messy Code - and why you should feel great doing it'))).toBeTruthy();
});
test('posts_write_shitty_code: h2 "Subscribe to posts"', async ({ page }) => {
await page.goto('/posts/write-shitty-code/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Subscribe to posts' || t.startsWith('Subscribe to posts'))).toBeTruthy();
});
test('posts_write_shitty_code: h2 "Fork and deploy a hello world "', async ({ page }) => {
await page.goto('/posts/write-shitty-code/');
const texts = (await page.locator('h2').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel' || t.startsWith('Fork and deploy a hello world project onto Nimbric in less time than it took to read this page. Feel'))).toBeTruthy();
});
test('posts_write_shitty_code: h3 "Sharpen the craft of writing c"', async ({ page }) => {
await page.goto('/posts/write-shitty-code/');
const texts = (await page.locator('h3').allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'Sharpen the craft of writing code' || t.startsWith('Sharpen the craft of writing code'))).toBeTruthy();
});
test('posts_write_shitty_code: nav link "nimbric"', async ({ page }) => {
await page.goto('/posts/write-shitty-code/');
const links = page.locator('nav a');
const texts = (await links.allTextContents()).map(s => s.replace(/\s+/g, ' ').trim());
expect(texts.some(t => t === 'nimbric' || t.startsWith('nimbric')), 'link text in nav').toBeTruthy();
});
});
test.describe('Functional - Routing', () => {
test('navigate to pricing via "pricing"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="pricing"]').first();
expect(await link.count(), 'nav link to pricing exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('pricing');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Pay only for what you use.');
});
test('navigate to blog via "blog"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="blog"]').first();
expect(await link.count(), 'nav link to blog exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('blog');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('the nimbric blog');
});
test('navigate to investors via "investors"', async ({ page }) => {
await page.goto('/');
const link = page.locator('a[href*="investors"]').first();
expect(await link.count(), 'nav link to investors exists').toBeGreaterThan(0);
await link.click();
await page.waitForTimeout(1200);
expect(page.url().toLowerCase(), 'URL changed to destination').toContain('investors');
const bodyText = (await page.evaluate(() => document.body.innerText)).replace(/\s+/g, ' ');
expect(bodyText, 'destination distinctive content shown').toContain('Investors');
});
});