playwright/examples/outlook-login/tests/mail.spec.ts

11 lines
310 B
TypeScript
Raw Normal View History

2022-12-02 01:04:18 +01:00
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();
});