|
|
@ -60,7 +60,7 @@ export class SelectOptionColumnPageObject extends BasePage { |
|
|
|
async deleteOption({ columnTitle, index }: { index: number; columnTitle: string }) { |
|
|
|
async deleteOption({ columnTitle, index }: { index: number; columnTitle: string }) { |
|
|
|
await this.column.openEdit({ title: columnTitle }); |
|
|
|
await this.column.openEdit({ title: columnTitle }); |
|
|
|
|
|
|
|
|
|
|
|
await this.column.get().locator(`svg[data-testid="select-column-option-remove-${index}"]`).click(); |
|
|
|
await this.column.get().locator(`[data-testid="select-column-option-remove-${index}"]`).click(); |
|
|
|
|
|
|
|
|
|
|
|
await expect(this.column.get().getByTestId(`select-column-option-${index}`)).toHaveClass(/removed/); |
|
|
|
await expect(this.column.get().getByTestId(`select-column-option-${index}`)).toHaveClass(/removed/); |
|
|
|
|
|
|
|
|
|
|
@ -70,11 +70,11 @@ export class SelectOptionColumnPageObject extends BasePage { |
|
|
|
async deleteOptionWithUndo({ columnTitle, index }: { index: number; columnTitle: string }) { |
|
|
|
async deleteOptionWithUndo({ columnTitle, index }: { index: number; columnTitle: string }) { |
|
|
|
await this.column.openEdit({ title: columnTitle }); |
|
|
|
await this.column.openEdit({ title: columnTitle }); |
|
|
|
|
|
|
|
|
|
|
|
await this.column.get().locator(`svg[data-testid="select-column-option-remove-${index}"]`).click(); |
|
|
|
await this.column.get().locator(`[data-testid="select-column-option-remove-${index}"]`).click(); |
|
|
|
|
|
|
|
|
|
|
|
await expect(this.column.get().getByTestId(`select-column-option-${index}`)).toHaveClass(/removed/); |
|
|
|
await expect(this.column.get().getByTestId(`select-column-option-${index}`)).toHaveClass(/removed/); |
|
|
|
|
|
|
|
|
|
|
|
await this.column.get().locator(`svg[data-testid="select-column-option-remove-undo-${index}"]`).click(); |
|
|
|
await this.column.get().locator(`[data-testid="select-column-option-remove-undo-${index}"]`).click(); |
|
|
|
|
|
|
|
|
|
|
|
await expect(this.column.get().getByTestId(`select-column-option-${index}`)).not.toHaveClass(/removed/); |
|
|
|
await expect(this.column.get().getByTestId(`select-column-option-${index}`)).not.toHaveClass(/removed/); |
|
|
|
|
|
|
|
|
|
|
@ -95,8 +95,8 @@ export class SelectOptionColumnPageObject extends BasePage { |
|
|
|
await this.column.rootPage.waitForTimeout(150); |
|
|
|
await this.column.rootPage.waitForTimeout(150); |
|
|
|
|
|
|
|
|
|
|
|
await this.column.rootPage.dragAndDrop( |
|
|
|
await this.column.rootPage.dragAndDrop( |
|
|
|
`svg[data-testid="select-option-column-handle-icon-${sourceOption}"]`, |
|
|
|
`[data-testid="select-option-column-handle-icon-${sourceOption}"]`, |
|
|
|
`svg[data-testid="select-option-column-handle-icon-${destinationOption}"]`, |
|
|
|
`[data-testid="select-option-column-handle-icon-${destinationOption}"]`, |
|
|
|
{ |
|
|
|
{ |
|
|
|
force: true, |
|
|
|
force: true, |
|
|
|
} |
|
|
|
} |
|
|
|