fix: createPage error (#1668)

This commit is contained in:
Qi
2023-03-23 18:01:58 +08:00
committed by GitHub
parent 6be94ca906
commit 4aea39fb94
2 changed files with 15 additions and 1 deletions

14
tests/subpage.spec.ts Normal file
View File

@@ -0,0 +1,14 @@
import { expect } from '@playwright/test';
import { loadPage } from './libs/load-page';
import { test } from './libs/playwright';
loadPage();
test.describe('subpage', () => {
test('Create subpage', async ({ page }) => {
await page.getByTestId('sliderBar-arrowButton-collapse').click();
const sliderBarArea = page.getByTestId('sliderBar');
await expect(sliderBarArea).not.toBeVisible();
});
});