Inconsistent newline characters for Windows

Open
#63 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
testing-qa

Research direction

Start by tracing the seeInSource and seeInPageSource entry points and comparing their PhpBrowser and WebDriver code paths. Confirm whether the duplicate method should be removed and define completion as consistent multiline comparisons when newline characters differ, with the relevant behavior covered by tests.

Written by the indexing model from the issue text.

Description

  1. Methods seeInSource and seeInPageSource have different descriptions and run different code paths, but ultimately do the very save comparison. Meaning there should be no seeInPageSource method. Please remove.
  2. I am trying to use either of them, let's say seeInSource. It works fine in PhpBrowser. But it fails for WebDriver. I have found the solution: I could do str_replace(chr(13), '', $whatIWantToSeeMultiline) and it will work for WebDriver. This is the old good \n vs \r\n. Could you please compare more intelligently, keeping in mind newline may differ?

Webserver is Apache and it's run on same Windows machine, by the way.

Dominant language
PHP
Stars
39
Forks
23
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Codeception/module-webdriver

All issues in Codeception/module-webdriver

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.