Skip to content

Commit e0b748e

Browse files
authored
remove nightwatch tests and package (#390)
* remove nightwatch tests and package * test: remove extra white space * test: lint playwright tests
1 parent a5502e6 commit e0b748e

23 files changed

Lines changed: 2 additions & 1291 deletions

nightwatch.conf.js

Lines changed: 0 additions & 100 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"scripts": {
3939
"start": "node scripts/start.js",
4040
"build": "node scripts/build.js",
41-
"lint": "eslint --color src tests",
41+
"lint": "eslint --color src playwright/tests",
4242
"test:sanity": "playwright test --grep '@sanity'",
4343
"cy:run": "export NODE_ENV=development; cypress run",
4444
"cy:open": "export NODE_ENV=development; cypress open",
@@ -79,7 +79,6 @@
7979
"html-webpack-plugin": "^4.0.0-beta.5",
8080
"imagemin-webpack-plugin": "2.4.2",
8181
"mini-css-extract-plugin": "^0.7.0",
82-
"nightwatch": "^2.1.0",
8382
"node-sass": "^4.12.0",
8483
"npm-run-all": "^4.1.3",
8584
"optimize-css-assets-webpack-plugin": "^4.0.1",

playwright/tests/submit/sorry.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { expect } = require('@playwright/test');
33
const { test } = require('../../browserstack');
44

55
test.describe('Sorry page @sanity @nightly-sanity', () => {
6-
76
test('accessing giftaid sorry page should show the sorry message', async ({ page }) => {
87

98
await page.goto(process.env.BASE_URL + 'sorry', { timeout: 30000 });

playwright/tests/submit/successRedirect.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const { expect } = require('@playwright/test');
33
const { test } = require('../../browserstack');
44

55
test.describe('Success page redirect @sanity @nightly-sanity', () => {
6-
76
test('accessing success page should redirect to giftaid homepage', async ({ page }) => {
87

98
await page.goto(process.env.BASE_URL + 'success', { timeout: 30000 });

playwright/tests/submit/validFormSubmission.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const { test } = require('../../browserstack');
44
const { Commands } = require('../utils/commands');
55

66
test.describe('Valid giftaid submission @sanity @nightly-sanity', () => {
7-
87
test('submit form with valid inputs', async ({ page }) => {
98

109
const commands = new Commands(page);
@@ -27,7 +26,6 @@ test.describe('Valid giftaid submission @sanity @nightly-sanity', () => {
2726

2827
await expect(page.locator('div > h1')).toContainText('Thank you,\n' +
2928
'test!');
30-
3129
await page.close();
3230
});
3331
});

playwright/tests/update/giftaidDeclarationOptions.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const { test } = require('../../browserstack');
44
const { Commands } = require('../utils/commands');
55

66
test.describe('Giftaid declaration validation @sanity @nightly-sanity', () => {
7-
87
test('select yes for giftaid claim should show as selected', async ({ page }) => {
98

109
const commands = new Commands(page);

playwright/yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ util-deprecate@~1.0.1:
358358
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
359359
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
360360

361-
uuid@^8.3.2:
361+
uuid@8.3.2, uuid@^8.3.2:
362362
version "8.3.2"
363363
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
364364
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==

tests/commands/form.js

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)