const { test, expect } = require('@playwright/test');

test('basic test', async ({ page }) => {
  await page.goto('http://localhost:3000');
  await page.click('[name=login]');
  
  await page.fill('[name=email]', '<EMAIL>');
  await page.fill('[name=password]', '<PASSWORD>');
  await page.click('[name=submit]');

  await page.waitForLoadState('networkidle');
  const access_token = await page.evaluate("() => window.localStorage.getItem('access_token')")
  console.log(access_token)
});