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

fix: example for locator comatibility in shopware versions #249

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

Conversation

frobel
Copy link
Contributor

@frobel frobel commented Dec 20, 2024

No description provided.

this.headline = page.getByRole('heading', { name: 'Customers' });
this.addCustomerButton = page.locator('.sw-customer-list__button-create');
this.bulkEditButton = page.getByRole('button', { name: 'Bulk edit' });

// Locator available in versions < 6.7
if(satisfies(instanceMeta.version, '<6.7')){
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For platform PRs (running test pipeline with major feature flag) there is another possibility:

shopware/shopware#5973

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