summaryrefslogtreecommitdiff
path: root/tests/example.spec.ts
blob: 8a974623a51d16d3119ee0b730c8df5d7d86fca4 (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('Endlich können wir Ihnen ab 23.12 .2023 10:00 Uhr wieder frische Milch anbieten.')).toBeTruthy();
});