-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(*): enable config card format (#111)
* feat(*): enable config card format * test(*): fix case * test(*): fix case * test(*): fix case
- Loading branch information
1 parent
32e805e
commit f8fc065
Showing
6 changed files
with
19 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
import type { Page, Locator } from '@playwright/test' | ||
import { selectOption } from './selectOption' | ||
|
||
export const clickConfigurationCopy = async (pageOrLocator: Page | Locator, entity: string) => { | ||
await pageOrLocator.locator(`.kong-ui-${entity}-entity-config-card`) | ||
.locator('.config-card-actions') | ||
.locator('[data-testid="json-copy-button"]') | ||
.click() | ||
} | ||
const configCardLocator = pageOrLocator.locator(`.kong-ui-${entity}-entity-config-card`) | ||
|
||
await selectOption(configCardLocator.locator('.config-card-actions'), 'json') | ||
await configCardLocator.getByTestId('k-code-block-copy-button').click() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters