Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fullofcaffeine committed Jun 24, 2021
1 parent 5f69c93 commit 4c709fc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/e2e-tests/specs/misc/settings.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
* WordPress dependencies
*/
import { visitAdminPage } from '@wordpress/e2e-test-utils';
/**
* Internal dependencies
*/

async function getOptionsValues( selector ) {
await visitAdminPage( 'options.php' );
Expand All @@ -19,8 +16,8 @@ async function getOptionsValues( selector ) {

describe( 'Settings', () => {
test( 'Regression: updating a specific option will only change its value and will not corrupt others', async () => {
// We won't select the option that we updated and will also remove some _transient options that seem to change at
// every update (?)
// We won't select the option that we updated and will also remove some
// _transient options that seem to change at every update (?)
const optionsInputsSelector =
'form#all-options table.form-table input:not([id*="_transient"]):not([id="blogdescription"])';
const optionsBefore = await getOptionsValues( optionsInputsSelector );
Expand Down

0 comments on commit 4c709fc

Please sign in to comment.