summaryrefslogtreecommitdiff
path: root/tests/example.spec.ts
blob: 3ff5cce259384d04c4eb31b96881a95cc3012fd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { test, expect } from '@playwright/test';

test('Milchtankstelle', async ({ page }) => {
  await page.goto('https://www.facebook.com/people/Milchtankstelle-in-Oberwellenborn/100057319515068/');

  await page.getByRole('button', {name: 'Decline optional cookies'}).click();
  await page.getByRole('button', {name: 'Close'}).click();

  let first = await page.$('xpath=//div[@role="article" and @aria-posinset="1"]');
  let firstText = await first.innerHTML();
  expect(firstText.includes('Wegen Renovierungsarbeiten bleibt der Regiomat geschlossen.')).toBeTruthy();
});