refactor: rename the copy for example (#8661)

* refactor: rename the copy for example

* fix: test
This commit is contained in:
Mark Kim
2025-05-12 12:21:39 -04:00
committed by GitHub
parent b229956097
commit df86a477fb
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import { test } from '../../playwright/test';
test('can render Spectral OpenAPI lint errors', async ({ page }) => {
await page.getByRole('button', { name: 'Create document' }).click();
await page.getByRole('dialog').getByRole('button', { name: 'Create' }).click();
await page.click('text=start from an example');
await page.click('text=start from boilerplate');
const codeEditor = page.locator('.pane-one');
await expect.soft(codeEditor).toContainText('openapi: 3.0.0');

View File

@@ -80,7 +80,7 @@ export const DesignEmptyState: FC<Props> = ({ onImport }) => {
onImport(spec.exampleOpenApiSpec);
}}
>
start from an example
start from boilerplate
</Button>
</span>
</p>