grabAttributeFrom returns just a part of element attribute

オープン
#5,371 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
47/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript
領域
testing-qa

調査の方向性

エントリーポイント grabAttributeFrom から始め、コロンとスペースを含む style 属性を使って報告されたケースを再現します。結果が CSS 宣言を含む属性値全体を保持していることを確認し、このヘルパーで使用されている既存のブラウザードライバーの動作を確認します。

索引モデルが issue の本文から書いたものです。

説明

stale

I'm trying to return and assert the element style, which looks like that:
<div class="carousel-slides" style="transform: translateX(-200%);">
... but the call
styleBefore = await I.grabAttributeFrom(selectors.index.homeSection.carouselSlides, 'style');
... finishes with value 'transform' and everything behind, including ":", is not returned, exactly the call of
console.log('LOG: styleBefore:', styleBefore );
... produces this:
> LOG: styleBefore: { '0': 'transform' }
... so I cannot get to the value and am practically unable to scan what picture is displayed on the carousel.

As I control the codebase, I added an attribute slide="" for testability, which reflects the slide number... and this works well, but complicated values with ":" or space make a problem.

主要言語
JavaScript
スター
4.2k
フォーク
756
平均マージ
2日 9時間
マージ済み PR(30日)
16

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codeceptjs/CodeceptJS のほかの issue

codeceptjs/CodeceptJS の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。