-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add abstractions for flow builder create test #298
base: trunk
Are you sure you want to change the base?
Conversation
|
||
constructor(public readonly page: Page, public readonly instanceMeta: HelperFixtureTypes['InstanceMeta']) { | ||
super(page, instanceMeta); | ||
if (satisfies(instanceMeta.version, '<6.6.9999999')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be 6.7
@@ -42,7 +44,13 @@ export class FlowBuilderListing implements PageObject { | |||
async getLineItemByFlowName(flowName: string): Promise<Record<string, Locator>> { | |||
const lineItem = this.page.locator('.sw-data-grid__row').filter({ hasText: flowName }); | |||
const flowSelectionCheckbox = lineItem.locator('.sw-data-grid__cell--selection').locator('.sw-field__checkbox'); | |||
const flowActiveCheckmark = lineItem.locator('.sw-data-grid__cell--active').locator('.icon--regular-checkmark-xs'); | |||
let flowActiveCheckmark | |||
if (satisfies(this.instanceMeta.version, '<6.6.9999999')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6.7 too
import type { FixtureTypes } from '../../../types/FixtureTypes'; | ||
import { FlowConfig } from '../../../types/ShopwareTypes'; | ||
|
||
export const CheckFlow = base.extend<{ CheckFlow: Task }, FixtureTypes>({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make more sense to make the validation in the Test and noch in the Task?
Changes to ATS for NEXT-39672 - Flow Builder Create test