Skip to content

Commit a418e97

Browse files
committed
feat: improve pagination block (try to fix tests)
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
1 parent da4399e commit a418e97

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

playwright/support/commands.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export async function ensureNavigationOpen(page: Page) {
124124
}
125125

126126
export async function openCreateRowModal(page: Page) {
127+
await waitForTransientModalsToClose(page)
127128
await expect(page.locator('.icon-loading').first()).toBeHidden({
128129
timeout: 10000,
129130
})
@@ -371,6 +372,7 @@ export async function sortTableColumn(
371372
columnTitle: string,
372373
mode: 'ASC' | 'DESC' = 'ASC',
373374
) {
375+
await waitForTransientModalsToClose(page)
374376
await expect(page.locator('.icon-loading').first()).toBeHidden({
375377
timeout: 10000,
376378
})
@@ -991,6 +993,10 @@ export async function createSelectionCheckColumn(
991993
}
992994

993995
export async function removeColumn(page: Page, title: string) {
996+
await waitForTransientModalsToClose(page)
997+
await expect(page.locator('.icon-loading').first()).toBeHidden({
998+
timeout: 10000,
999+
})
9941000
const columnHeader = page
9951001
.locator('.custom-table table tr th')
9961002
.filter({ hasText: new RegExp('^' + title + '$', 'i') })

src/shared/components/ncTable/sections/PaginationBlock.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export default {
170170
.pagination-items{
171171
background-color: var(--color-main-background);
172172
border-radius: var(--border-radius-large);
173-
pointer-events: all;
174173
display: flex;
175174
align-items: center;
176175
flex-shrink: 0;
@@ -189,7 +188,6 @@ export default {
189188
}
190189
191190
.pagination-block{
192-
pointer-events: none;
193191
display: flex;
194192
justify-content: center;
195193
align-items: center;

0 commit comments

Comments
 (0)