Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C669210710 for ; Wed, 19 Nov 2014 17:50:46 +0000 (UTC) Received: (qmail 20184 invoked by uid 500); 19 Nov 2014 17:50:46 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 20125 invoked by uid 500); 19 Nov 2014 17:50:46 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 20114 invoked by uid 99); 19 Nov 2014 17:50:45 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2014 17:50:45 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A57209AC44C; Wed, 19 Nov 2014 17:50:45 +0000 (UTC) From: robertkowalski To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-fauxton pull request: Redesign Documents Content-Type: text/plain Message-Id: <20141119175045.A57209AC44C@tyr.zones.apache.org> Date: Wed, 19 Nov 2014 17:50:45 +0000 (UTC) Github user robertkowalski commented on a diff in the pull request: https://github.com/apache/couchdb-fauxton/pull/151#discussion_r20593307 --- Diff: app/addons/documents/tests/nightwatch/deletesDocument.js --- @@ -21,13 +21,14 @@ module.exports = { .loginToGUI() .createDocument(newDocumentName, newDatabaseName) .url(baseUrl) - .waitForElementPresent('#dashboard-content a[href="#/database/'+newDatabaseName+'/_all_docs"]', waitTime, false) - .pause(1000) + .waitForElementPresent('#dashboard-content a[href="#/database/'+newDatabaseName+'/_all_docs"]', waitTime) .click('#dashboard-content a[href="#/database/'+newDatabaseName+'/_all_docs"]') - .waitForElementPresent('[data-id="'+newDocumentName+'"] .btn.btn-small.btn-danger.delete', waitTime, false) - .execute('$("[data-id=\''+newDocumentName+'\'] .btn.btn-small.btn-danger.delete").click();') + .waitForElementVisible('label[for="checkbox-' + newDocumentName + '"]', waitTime) + .click('label[for="checkbox-' + newDocumentName + '"]') + .waitForElementPresent('.js-bulk-delete:not(.disabled)', waitTime) + .click('button.js-bulk-delete') .acceptAlert() - .waitForElementVisible('#global-notifications .alert.alert-info', waitTime, false) + .waitForElementVisible('#global-notifications .alert.alert-info', waitTime) --- End diff -- is there a reason not to fail fast if it is already broken at this step? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---