Rezix
Rezix
TTCTheo's Typesafe Cult
Created by Rezix on 1/18/2024 in #questions
Frontent Testing Framework
Thanks for the help! It worked using extra page.waitForTimeout(2000) and page.waitForSelector(mySelector, { state: 'visible'}) Used also your locator approach with locator and fill. Worked like a charm 🙂
12 replies
TTCTheo's Typesafe Cult
Created by Rezix on 1/18/2024 in #questions
Frontent Testing Framework
Thanks! Going to try it out 🙂
12 replies
TTCTheo's Typesafe Cult
Created by Rezix on 1/18/2024 in #questions
Frontent Testing Framework
Hmm, maybe the state was missing:
await page.waitForSelector('selector', { state: 'visible' });
await page.waitForSelector('selector', { state: 'visible' });
12 replies
TTCTheo's Typesafe Cult
Created by Rezix on 1/18/2024 in #questions
Frontent Testing Framework
Maybe i misconfigured the Playwright Script, but it couldn't click the buttons.
const { test } = require('@playwright/test');

test('Log in to the website', async ({ page }) => {
// Navigate to the login page
await page.goto('https://example.com/login');

// Fill in the username and password
await page.fill('input[name="username"]', 'your_username');
await page.fill('input[name="password"]', 'your_password');

// Click the login button
await Promise.all([
page.waitForNavigation(), // Waits for the next navigation (page load)
page.click('button[type="submit"]') // Clicks the login button
]);

// Now you are logged in, and you can test the restricted area
});
const { test } = require('@playwright/test');

test('Log in to the website', async ({ page }) => {
// Navigate to the login page
await page.goto('https://example.com/login');

// Fill in the username and password
await page.fill('input[name="username"]', 'your_username');
await page.fill('input[name="password"]', 'your_password');

// Click the login button
await Promise.all([
page.waitForNavigation(), // Waits for the next navigation (page load)
page.click('button[type="submit"]') // Clicks the login button
]);

// Now you are logged in, and you can test the restricted area
});
Tried also Cookie / Session Storage trick, but it didn't worked either.
12 replies
TTCTheo's Typesafe Cult
Created by iboughtbed on 1/2/2024 in #questions
next markdown rendering library (NOT MDX) on server
Used the same approach as @barry described
9 replies
TTCTheo's Typesafe Cult
Created by iboughtbed on 1/2/2024 in #questions
next markdown rendering library (NOT MDX) on server
Did something similiar 4 days ago 😄 https://github.com/programowanienakolanie/poradnik-css-pl/
9 replies