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

Added tests to verify, that iframe switching by an id works #87

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

aik099
Copy link
Member

@aik099 aik099 commented Feb 18, 2024

Existing tests only cover iframe switching by name. This PR adds these tests:

  1. frame switching by an id;
  2. frame switching by an index.

See minkphp/Mink#866 (PR 2 of 4)

The PhpStan correctly reports this, but I can't fix it due to the problem described in the above-mentioned issue.

Error: Parameter #1 $name of method Behat\Mink\Session::switchToIFrame() expects string|null, int|string given.

@aik099 aik099 changed the title Added tests to verify, that iframe switching by an index works Added tests to verify, that iframe switching by an id/index works Feb 22, 2024
@aik099 aik099 requested a review from stof February 22, 2024 14:24
@aik099 aik099 changed the title Added tests to verify, that iframe switching by an id/index works Added tests to verify, that iframe switching by an id works Feb 23, 2024
@aik099
Copy link
Member Author

aik099 commented Feb 23, 2024

The PR now tests frame switching by an ID (added code) in addition to frame switching an a name (existing code).

tests/Basic/IFrameTest.php Outdated Show resolved Hide resolved
tests/Basic/IFrameTest.php Outdated Show resolved Hide resolved
@aik099
Copy link
Member Author

aik099 commented Feb 26, 2024

@stof , both requested changes have been made. Ready for another review.

Copy link
Member

@stof stof left a comment

Choose a reason for hiding this comment

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

the failed CI should be solved by rebasing on the latest master thanks to #90

@aik099
Copy link
Member Author

aik099 commented Feb 27, 2024

the failed CI should be solved by rebasing on the latest master thanks to #90

Rebased. Merging now.

@aik099 aik099 merged commit f9d36b6 into minkphp:master Feb 27, 2024
2 checks passed
@aik099 aik099 deleted the frame-switching-by-index branch February 27, 2024 15:01
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.

2 participants