Skip to content
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

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

GitEvil
Copy link
Contributor

@GitEvil GitEvil commented Feb 3, 2025

Changes to ATS for NEXT-39672 - Flow Builder Create test


constructor(public readonly page: Page, public readonly instanceMeta: HelperFixtureTypes['InstanceMeta']) {
super(page, instanceMeta);
if (satisfies(instanceMeta.version, '<6.6.9999999')) {
Copy link
Contributor

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')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6.7 too

src/tasks/shop-admin/Flow/CreateFlow.ts Outdated Show resolved Hide resolved
src/tasks/shop-admin/Flow/CheckFlow.ts Outdated Show resolved Hide resolved
src/page-objects/administration/FlowBuilderCreate.ts Outdated Show resolved Hide resolved
src/page-objects/administration/FlowBuilderListing.ts Outdated Show resolved Hide resolved
import type { FixtureTypes } from '../../../types/FixtureTypes';
import { FlowConfig } from '../../../types/ShopwareTypes';

export const CheckFlow = base.extend<{ CheckFlow: Task }, FixtureTypes>({
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants