playwright/examples/outlook-login/tests/mail.spec.ts
2022-12-01 16:04:18 -08:00

11 lines
310 B
TypeScript

import { test, expect } from '@playwright/test';
test.use({
storageStateName: 'outlook-test-user'
});
test('inbox has new mail button', async ({ page }) => {
await page.goto('/');
await expect(page.getByRole('button', { name: 'New mail' }).getByRole('button', { name: 'New mail' })).toBeVisible();
});