Skip to content

Commit

Permalink
remove nightwatch tests and package (#390)
Browse files Browse the repository at this point in the history
* remove nightwatch tests and package

* test: remove extra white space

* test: lint playwright tests
  • Loading branch information
KrupaPammi authored Apr 6, 2023
1 parent a5502e6 commit e0b748e
Show file tree
Hide file tree
Showing 23 changed files with 2 additions and 1,291 deletions.
100 changes: 0 additions & 100 deletions nightwatch.conf.js

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"scripts": {
"start": "node scripts/start.js",
"build": "node scripts/build.js",
"lint": "eslint --color src tests",
"lint": "eslint --color src playwright/tests",
"test:sanity": "playwright test --grep '@sanity'",
"cy:run": "export NODE_ENV=development; cypress run",
"cy:open": "export NODE_ENV=development; cypress open",
Expand Down Expand Up @@ -79,7 +79,6 @@
"html-webpack-plugin": "^4.0.0-beta.5",
"imagemin-webpack-plugin": "2.4.2",
"mini-css-extract-plugin": "^0.7.0",
"nightwatch": "^2.1.0",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.3",
"optimize-css-assets-webpack-plugin": "^4.0.1",
Expand Down
1 change: 0 additions & 1 deletion playwright/tests/submit/sorry.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { expect } = require('@playwright/test');
const { test } = require('../../browserstack');

test.describe('Sorry page @sanity @nightly-sanity', () => {

test('accessing giftaid sorry page should show the sorry message', async ({ page }) => {

await page.goto(process.env.BASE_URL + 'sorry', { timeout: 30000 });
Expand Down
1 change: 0 additions & 1 deletion playwright/tests/submit/successRedirect.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const { expect } = require('@playwright/test');
const { test } = require('../../browserstack');

test.describe('Success page redirect @sanity @nightly-sanity', () => {

test('accessing success page should redirect to giftaid homepage', async ({ page }) => {

await page.goto(process.env.BASE_URL + 'success', { timeout: 30000 });
Expand Down
2 changes: 0 additions & 2 deletions playwright/tests/submit/validFormSubmission.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const { test } = require('../../browserstack');
const { Commands } = require('../utils/commands');

test.describe('Valid giftaid submission @sanity @nightly-sanity', () => {

test('submit form with valid inputs', async ({ page }) => {

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

await expect(page.locator('div > h1')).toContainText('Thank you,\n' +
'test!');

await page.close();
});
});
1 change: 0 additions & 1 deletion playwright/tests/update/giftaidDeclarationOptions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const { test } = require('../../browserstack');
const { Commands } = require('../utils/commands');

test.describe('Giftaid declaration validation @sanity @nightly-sanity', () => {

test('select yes for giftaid claim should show as selected', async ({ page }) => {

const commands = new Commands(page);
Expand Down
2 changes: 1 addition & 1 deletion playwright/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ util-deprecate@~1.0.1:
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==

uuid@^8.3.2:
uuid@8.3.2, uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
Expand Down
220 changes: 0 additions & 220 deletions tests/commands/form.js

This file was deleted.

Loading

0 comments on commit e0b748e

Please sign in to comment.