From 76188513233b9640188b3af40a395a49c1ac75be Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 20 May 2022 18:22:45 +0800 Subject: [PATCH] chore: remove stale tests [ci skip] --- test/e2e/modal.ts | 27 -------------------------- test/e2e/select2.ts | 47 --------------------------------------------- 2 files changed, 74 deletions(-) delete mode 100644 test/e2e/modal.ts delete mode 100644 test/e2e/select2.ts diff --git a/test/e2e/modal.ts b/test/e2e/modal.ts deleted file mode 100644 index 947bab17..00000000 --- a/test/e2e/modal.ts +++ /dev/null @@ -1,27 +0,0 @@ -module.exports = { - 'modal': function (browser) { - browser - .url('http://localhost:8080/examples/modal/') - .waitForElementVisible('#app', 1000) - .assert.elementNotPresent('.modal-mask') - .click('#show-modal') - .assert.elementPresent('.modal-mask') - .assert.elementPresent('.modal-wrapper') - .assert.elementPresent('.modal-container') - .waitFor(50) - .assert.cssClassPresent('.modal-mask', 'modal-enter-active') - .waitFor(300) - .assert.cssClassNotPresent('.modal-mask', 'modal-enter-active') - .assert.containsText('.modal-header h3', 'custom header') - .assert.containsText('.modal-body', 'default body') - .assert.containsText('.modal-footer', 'default footer') - .click('.modal-default-button') - // should have transition - .assert.elementPresent('.modal-mask') - .waitFor(50) - .assert.cssClassPresent('.modal-mask', 'modal-leave-active') - .waitFor(300) - .assert.elementNotPresent('.modal-mask') - .end() - } -} diff --git a/test/e2e/select2.ts b/test/e2e/select2.ts deleted file mode 100644 index 24a2a87b..00000000 --- a/test/e2e/select2.ts +++ /dev/null @@ -1,47 +0,0 @@ -declare const vm: any - -module.exports = { - 'select2': function (browser) { - browser - .url('http://localhost:8080/examples/select2/') - .waitForElementVisible('.select2', 1000) - .assert.elementPresent('select') - .assert.containsText('p', 'Selected: 0') - .assert.containsText('span.select2', 'Select one') - - .click('.select2-selection__rendered') - .assert.count('.select2-results__option', 3) - .assert.containsText('.select2-results__option:nth-child(1)', 'Select one') - .assert.containsText('.select2-results__option:nth-child(2)', 'Hello') - .assert.containsText('.select2-results__option:nth-child(3)', 'World') - .assert.attributePresent('.select2-results__option:nth-child(1)', 'aria-disabled') - - .click('.select2-results__option:nth-child(2)') - .assert.count('.select2-results__option', 0) - .assert.containsText('p', 'Selected: 1') - .assert.containsText('span.select2', 'Hello') - - // test dynamic options - .execute(function () { - vm.options.push({ id: 3, text: 'Vue' }) - }) - .click('.select2-selection__rendered') - .assert.count('.select2-results__option', 4) - .assert.containsText('.select2-results__option:nth-child(1)', 'Select one') - .assert.containsText('.select2-results__option:nth-child(2)', 'Hello') - .assert.containsText('.select2-results__option:nth-child(3)', 'World') - .assert.containsText('.select2-results__option:nth-child(4)', 'Vue') - - .click('.select2-results__option:nth-child(4)') - .assert.count('.select2-results__option', 0) - .assert.containsText('p', 'Selected: 3') - .assert.containsText('span.select2', 'Vue') - - .execute(function () { - vm.selected = 2 - }) - .assert.containsText('p', 'Selected: 2') - .assert.containsText('span.select2', 'World') - .end() - } -}