Created
June 24, 2025 10:15
-
-
Save Emilia-Raffalli/77db8d71b51e84e981f5cdb5569e5a6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Test : calculate 1 + 1 in desmos calculator