xwp / unsplash-wp

GNU General Public License v2.0
9 stars 3 forks source link

Unable to import image in E2E tests in travis #157

Closed spacedmonkey closed 4 years ago

spacedmonkey commented 4 years ago

Bug Description

In travis, any E2E test that clicks the select button in places like featured image, image block, unsplash block and classic editor timeout. The reason for this is unknown and requires debugging.

Once images can be imported, the test coverage will go up messurably and will cover a some massive dark spots in coverage.

Expected Behaviour

The tests listed below would pass, as they pass locally.

Steps to reproduce

Example of broken tests run - https://travis-ci.com/github/xwp/unsplash-wp/jobs/341533997 Examples of tests that failed. https://github.com/xwp/unsplash-wp/blob/f8057dc737803950791c7e0c0c2857bb39d85afd/tests/e2e/specs/classic/editor.spec.js#L56-L78 https://github.com/xwp/unsplash-wp/blob/f8057dc737803950791c7e0c0c2857bb39d85afd/tests/e2e/specs/classic/featured-image.spec.js#L40-L52 https://github.com/xwp/unsplash-wp/blob/f8057dc737803950791c7e0c0c2857bb39d85afd/tests/e2e/specs/gutenberg/featured-image.spec.js#L30-L50 https://github.com/xwp/unsplash-wp/blob/f8057dc737803950791c7e0c0c2857bb39d85afd/tests/e2e/specs/gutenberg/image-block.spec.js#L56-L71

Screenshots

Additional context


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry