Files
e-tib.com/test-contact-auth.cjs
Marc Mintel aa0dfdf331
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 34s
Build & Deploy / 🧪 QA (push) Successful in 1m10s
Build & Deploy / 🏗️ Build (push) Successful in 2m13s
Build & Deploy / 🚀 Deploy (push) Successful in 27s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 45s
Build & Deploy / 🔔 Notify (push) Successful in 2s
fix: refactor standorte detail page layout to match standard mdx pages and fix bohrtechnik links
2026-06-15 11:26:09 +02:00

33 lines
1.1 KiB
JavaScript

const puppeteer = require('puppeteer');
(async () => {
const targetUrl = 'https://test.e-tib.com';
const gatekeeperPassword = process.env.GATEKEEPER_PASSWORD || 'klz2026';
const browser = await puppeteer.launch({ headless: true });
const page = await browser.newPage();
await page.goto(targetUrl, { waitUntil: 'domcontentloaded' });
await new Promise((resolve) => setTimeout(resolve, 3000));
const isGatekeeper = await page.$('input[name="password"]');
if (isGatekeeper) {
await page.type('input[name="password"]', gatekeeperPassword);
await Promise.all([
page.click('button[type="submit"]'),
]);
await new Promise((resolve) => setTimeout(resolve, 5000));
}
await page.screenshot({ path: 'after-login.png' });
await page.goto(`${targetUrl}/de/kontakt`, { waitUntil: 'domcontentloaded' });
await new Promise(r => setTimeout(r, 2000));
const html = await page.content();
const fs = require('fs');
fs.writeFileSync('contact-page-auth-debug.html', html);
await page.screenshot({ path: 'contact.png' });
await browser.close();
})();