summaryrefslogtreecommitdiff
path: root/tests/example.spec.ts
blob: fe87980d9aea4ae034448cee8294b2eae93013af (plain)
1
2
3
4
5
6
7
8
9
10
11
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('Unsere Milchtankstelle ist defekt!')).toBeTruthy();
});