Files
bytedance--flowgram.ai/e2e/fixed-layout/tests/validate.spec.ts
T
wehub-resource-sync 0232b4e2bb
CI / build (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:09:51 +08:00

26 lines
603 B
TypeScript

/**
* Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
* SPDX-License-Identifier: MIT
*/
import { test, expect } from '@playwright/test';
import PageModel from './models';
test.describe('test validate', () => {
let editorPage: PageModel;
test.beforeEach(async ({ page }) => {
editorPage = new PageModel(page);
await page.goto('http://localhost:3000');
});
test('save', async ({ page }) => {
const saveBtn = await page.getByText('Save');
saveBtn.click();
const badge = page.locator('span.semi-badge-danger');
await expect(badge).toHaveText('2');
});
});