Skip to content

Instantly share code, notes, and snippets.

@Emilia-Raffalli
Created June 24, 2025 10:15
Show Gist options
  • Save Emilia-Raffalli/77db8d71b51e84e981f5cdb5569e5a6f to your computer and use it in GitHub Desktop.
Save Emilia-Raffalli/77db8d71b51e84e981f5cdb5569e5a6f to your computer and use it in GitHub Desktop.
import { test, expect } from '@playwright/test';
test('calculate 1 + 1 in desmos calculator', async ({ page }) => {
await page.goto('https://www.desmos.com/scientific?lang=fr');
await page.getByRole('button', { name: '1'}).click();
await page.getByRole('button', { name: 'Plus'}).click();
await page.getByRole('button', { name: '1'}).click();
await page.getByRole('button', { name: 'Entrée'}).click();
await expect(page.getByText('equals 2=')).toBeVisible();
})
@Emilia-Raffalli
Copy link
Author

Test : calculate 1 + 1 in desmos calculator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment