@grafana/plugin-e2e
Advanced tools
Comparing version 1.18.1-canary.1536.13269284369.0 to 1.18.1-canary.1540.13286264005.0
@@ -8,3 +8,4 @@ import { Locator } from '@playwright/test'; | ||
selectOption(rgbOrHex: string, options?: SelectOptionsType): Promise<void>; | ||
private getCustomTab; | ||
private getContainer; | ||
} |
@@ -13,3 +13,3 @@ "use strict"; | ||
await this.element.getByRole('button').click(options); | ||
await this.getContainer().getByRole('button', { name: 'Custom', exact: true }).click(options); | ||
await this.getCustomTab().click(options); | ||
const colorInput = this.getContainer().getByTestId('input-wrapper').getByRole('textbox'); | ||
@@ -19,2 +19,8 @@ await colorInput.hover(options); | ||
} | ||
getCustomTab() { | ||
if ((0, semver_1.gte)(this.ctx.grafanaVersion, '11.6.0')) { | ||
return this.getContainer().getByRole('tab', { name: 'Custom', exact: true }); | ||
} | ||
return this.getContainer().getByRole('button', { name: 'Custom', exact: true }); | ||
} | ||
getContainer() { | ||
@@ -21,0 +27,0 @@ const { grafanaVersion, page, selectors } = this.ctx; |
{ | ||
"name": "@grafana/plugin-e2e", | ||
"version": "1.18.1-canary.1536.13269284369.0", | ||
"version": "1.18.1-canary.1540.13286264005.0", | ||
"main": "./dist/index.js", | ||
@@ -44,3 +44,3 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@grafana/e2e-selectors": "^11.6.0-223459", | ||
"@grafana/e2e-selectors": "^11.6.0-221763", | ||
"semver": "^7.5.4", | ||
@@ -59,3 +59,3 @@ "uuid": "^11.0.2", | ||
}, | ||
"gitHead": "31dde049304d90181723d24dd93692e3b129113d" | ||
"gitHead": "fe4a39822d7807f481fad50404ec5795eefeecba" | ||
} |
213265
4381