summaryrefslogtreecommitdiff
path: root/tests/example.spec.ts
blob: 4a613490be6a580c4d2e20de1fcd8b6aae6a5ba8 (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[@aria-posinset="1"]');
  let firstText = await first.innerHTML();
  expect(firstText.includes('Endlich können wir Ihnen ab 23.12 .2023 10:00 Uhr wieder frische Milch anbieten.')).toBeTruthy();
});