Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[CssSelector] Tests on Xpath translator will always pass#50729

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

franckranaivo
Copy link
Contributor

While working on another PR (#49388), I noticed that the assertion below will always pass as it is testing the count of the same array on both side.

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets
LicenseMIT
Doc PR

Instead of
$this->assertCount(\count($elementsId), $elementsId);
It should be
$this->assertCount(\count($elementsId), $elements);

This PR should fix also numbers and/or Xpath translator issues from this fixed assertion.

P.S.
This is the right PR for this issue (#50726)

@nicolas-grekas
Copy link
Member

And the test now fails 😅
Can you have a look?

@franckranaivo
Copy link
ContributorAuthor

And the test now fails 😅 Can you have a look?

Sure, this is why@stof suggested mehere to fix also failing tests from this PR.

@franckranaivo
Copy link
ContributorAuthor

Fixed the failing tests. Xpath translator in itself is not to blame, it is just some wrong assertion or misunderstanding of rules of the selector for some tests.

@nicolas-grekasnicolas-grekasforce-pushed thefix-test-xpath-translator branch from5e2d5d1 tobb123abCompareJuly 7, 2023 06:10
@nicolas-grekas
Copy link
Member

Good catch, thanks@franckranaivo.

franckranaivo reacted with heart emoji

@nicolas-grekasnicolas-grekas merged commit11fa1be intosymfony:5.4Jul 7, 2023
@franckranaivofranckranaivo deleted the fix-test-xpath-translator branchJuly 10, 2023 08:33
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
5.4
Development

Successfully merging this pull request may close these issues.

3 participants
@franckranaivo@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp