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

Local autosave: Expand E2E tests #17503

Merged
merged 2 commits into from
Sep 25, 2019
Merged

Local autosave: Expand E2E tests #17503

merged 2 commits into from
Sep 25, 2019

Conversation

mcsf
Copy link
Contributor

@mcsf mcsf commented Sep 20, 2019

Description

Fixes part of #17495

@mcsf mcsf added the [Feature] Saving Related to saving functionality label Sep 20, 2019
Copy link
Contributor

@epiqueras epiqueras left a comment

Choose a reason for hiding this comment

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

Maybe we shouldn't close #17495 yet?

We're still missing this:

  • Add documentation for the newly introduced component

packages/e2e-tests/specs/autosave.test.js Show resolved Hide resolved
expect( await page.evaluate( () => window.sessionStorage.length ) ).toBe( 1 );

const logoutUrl = await page.$eval( '#wp-admin-bar-logout a', ( element ) => element.href );
await page.goto( logoutUrl );
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we just click on the button/link?

Copy link
Member

Choose a reason for hiding this comment

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

Right, click should work better in this case 👍

@gziolo gziolo added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Sep 23, 2019
@mcsf
Copy link
Contributor Author

mcsf commented Sep 23, 2019

Maybe we shouldn't close #17495 yet?

Well spotted.

Copy link
Contributor

@epiqueras epiqueras left a comment

Choose a reason for hiding this comment

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

LGTM after rebasing to pass the e2e tests.

@mcsf mcsf force-pushed the update/local-autosave-e2e-tests branch from efb00c2 to 482ce6d Compare September 25, 2019 16:31
@mcsf
Copy link
Contributor Author

mcsf commented Sep 25, 2019

LGTM after rebasing to pass the e2e tests.

Thanks!

@mcsf mcsf force-pushed the update/local-autosave-e2e-tests branch from 482ce6d to eb2eba8 Compare September 25, 2019 17:22
@mcsf mcsf merged commit 35e0bad into master Sep 25, 2019
@mcsf mcsf deleted the update/local-autosave-e2e-tests branch September 25, 2019 17:45
@youknowriad youknowriad added this to the Gutenberg 6.6 milestone Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Saving Related to saving functionality [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants