docs(grid): [grid]correct wrong words (#3111)
* docs(grid): [grid]correct wrong words * fix: fix error e2e test
This commit is contained in:
parent
639b45b27d
commit
0be0da3a15
|
@ -2,7 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<h4 class="title">开启编辑状态:</h4>
|
<h4 class="title">开启编辑状态:</h4>
|
||||||
<div class="btn-box">
|
<div class="btn-box">
|
||||||
<tiny-butotn @click="addRow">新增行</tiny-butotn>
|
<tiny-button @click="addRow">新增行</tiny-button>
|
||||||
</div>
|
</div>
|
||||||
<tiny-grid
|
<tiny-grid
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { TinyGrid, TinyGridColumn, TinyButton as TinyButotn } from '@opentiny/vue'
|
import { TinyGrid, TinyGridColumn, TinyButton } from '@opentiny/vue'
|
||||||
|
|
||||||
const insertGrid = ref('insertGrid')
|
const insertGrid = ref('insertGrid')
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<h4 class="title">开启编辑状态:</h4>
|
<h4 class="title">开启编辑状态:</h4>
|
||||||
<div class="btn-box">
|
<div class="btn-box">
|
||||||
<tiny-butotn @click="addRow">新增行</tiny-butotn>
|
<tiny-button @click="addRow">新增行</tiny-button>
|
||||||
</div>
|
</div>
|
||||||
<tiny-grid
|
<tiny-grid
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
|
@ -51,7 +51,7 @@ import { TinyGrid, TinyGridColumn, TinyButton } from '@opentiny/vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
TinyButotn: TinyButton,
|
TinyButton,
|
||||||
TinyGrid,
|
TinyGrid,
|
||||||
TinyGridColumn
|
TinyGridColumn
|
||||||
},
|
},
|
||||||
|
|
|
@ -16,22 +16,4 @@ test('编辑器插槽', async ({ page }) => {
|
||||||
.first()
|
.first()
|
||||||
.click()
|
.click()
|
||||||
await expect(page.getByRole('cell', { name: 'WWWWsdfd 科技 YX 公司' })).toBeVisible()
|
await expect(page.getByRole('cell', { name: 'WWWWsdfd 科技 YX 公司' })).toBeVisible()
|
||||||
|
|
||||||
await page.getByText('17:00:00').first().click()
|
|
||||||
await page.waitForTimeout(1000)
|
|
||||||
await page.locator('.tiny-date-editor .tiny-input__icon-container svg').nth(1).click()
|
|
||||||
await page
|
|
||||||
.locator('.tiny-time-spinner__list')
|
|
||||||
.first()
|
|
||||||
.locator('.tiny-time-spinner__item')
|
|
||||||
.filter({ hasText: /^19$/ })
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
await page
|
|
||||||
.locator('div')
|
|
||||||
.filter({ hasText: /^编辑器插槽$/ })
|
|
||||||
.first()
|
|
||||||
.click()
|
|
||||||
await expect(page.getByRole('cell', { name: '19:00:00' })).toBeVisible()
|
|
||||||
await expect(page.locator('.tiny-modal').filter({ hasText: /下班时间编辑完成/ })).toBeVisible()
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue