Skip to content

Commit

Permalink
[DDW-617] WIP: refactor all tests into same folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikGuzei committed Apr 2, 2019
1 parent 7030ee7 commit 06f720a
Show file tree
Hide file tree
Showing 453 changed files with 134 additions and 103 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ logs
node_modules
translations
tests
features/support/default-wallet.json
features/support/ui/documents/*
mainnet-genesis-dryrun-with-stakeholders.json
source/renderer/app/i18n/locales
nodemon.json
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ translations/messages
translations/reports

# 'Screenshots' and 'Paper wallet ceritifcate PDF file' generated by acceptance tests
features/support/paper_wallet_certificates/paper-wallet-certificate.pdf
features/screenshots
features/support/ui/documents/paper_wallet_certificates/paper-wallet-certificate.pdf
features/support/ui/screenshots

# Webpack
.cache
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@

# Ignore the following special folders and files
source/renderer/app/i18n/locales/
features/support/default-wallet.json
features/support/ui/documents/*
1 change: 1 addition & 0 deletions features/about-dialog.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: About Dialog

Background:
Expand Down
1 change: 1 addition & 0 deletions features/accept-terms-of-use.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Accept "Terms of use"
Background:
Expand Down
1 change: 1 addition & 0 deletions features/ada-redemption.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Ada Redemption

Background:
Expand Down
1 change: 1 addition & 0 deletions features/add-wallet-via-sidebar.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Add Wallet via Sidebar

Background:
Expand Down
3 changes: 2 additions & 1 deletion features/block-consolidation-page.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@ui
Feature: Display Block Consolidation Page

Background:
Given I have completed the basic setup

Scenario: Open/close the Block Consolidation Page and ensure epoch consolidation data is rendered correctly
When I toggle the Block Consolidation Status Page
Then the Block Consolidation Status Page is visible
Expand Down
1 change: 1 addition & 0 deletions features/data-layer-migration.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Data Layer Migration

Background:
Expand Down
1 change: 1 addition & 0 deletions features/delete-wallet-via-settings.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Delete Wallet via Settings

Background:
Expand Down
1 change: 1 addition & 0 deletions features/import-wallet-via-sidebar.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Import Wallet via Sidebar

Background:
Expand Down
1 change: 1 addition & 0 deletions features/local-time-difference.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Local Time Difference

Scenario: Wrong local time
Expand Down
1 change: 1 addition & 0 deletions features/navigate-general-settings-menu.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: General Settings

Background:
Expand Down
1 change: 1 addition & 0 deletions features/navigate-sidebar-categories.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Navigate Sidebar Categories

Background:
Expand Down
1 change: 1 addition & 0 deletions features/navigate-wallet-tabs.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Navigate Wallet Tabs

Background:
Expand Down
1 change: 1 addition & 0 deletions features/no-disk-space.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: No Disk Space Overlay

Background:
Expand Down
1 change: 1 addition & 0 deletions features/node-update-exit.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Node Update Exit

Background:
Expand Down
1 change: 1 addition & 0 deletions features/node-update-notification.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Node Update Notification

Background:
Expand Down
1 change: 1 addition & 0 deletions features/paper-wallets-certificate.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Paper Wallets Certificate generation

Background:
Expand Down
1 change: 1 addition & 0 deletions features/quit-app.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Quitting Daedalus

Daedalus can be quit in multiple (and unexpected) ways and
Expand Down
1 change: 1 addition & 0 deletions features/receive-money.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Receive money

Background:
Expand Down
1 change: 1 addition & 0 deletions features/restore-wallet-via-sidebar.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Add Wallet via Sidebar

Background:
Expand Down
1 change: 1 addition & 0 deletions features/select-language.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Select Language

Scenario: User Selects Language
Expand Down
1 change: 1 addition & 0 deletions features/send-money-to-receiver.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Send Money to Receiver

Background:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@unit
Feature: Spending password validation

- should contain at least one digit
Expand Down
1 change: 0 additions & 1 deletion features/support/default-wallet.json

This file was deleted.

1 change: 1 addition & 0 deletions features/switching-between-wallets.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@ui
Feature: Switching Between Wallets

Background:
Expand Down
14 changes: 14 additions & 0 deletions features/tests/ui/documents/default-wallet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"wallet": {
"accounts": [{ "name": "Genesis account", "index": 2147483648 }],
"walletSecretKey": "WIAwbsQgbz9X0WhvOnVeH+yRs7Ri93ESTdMspBHzeLnPUR6hLZL/NazfB40z2x8FZhLwNIt83DCuMR1nGG+ZqvsD/ouyzg3ec729fnrqEMO4A+qPTJmpiRgQZfYO2KDJDRxLtMyofXl90VVZOEke/QddnZ8CGHoR/lCemJgZuvzBpw==",
"walletMeta": {
"name": "Imported Wallet",
"assurance": "normal",
"unit": "ADA"
},
"passwordHash": "WGQxNHw4fDF8V0NERGRHY0JGcThzelVyeFdza00wM1VjYnloeVBBQXBvdWtwdWFsUTExNGVFdz09fFJXMk5kUmVJYmg2REtsa2lsWG8rQ1lvTStRZmJkMzRmRVd0MG4rSy82YUU9"
},
"fileType": "WALLETS_EXPORT",
"fileVersion": "1.0.0"
}
File renamed without changes.
File renamed without changes.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import type { WebdriverClient } from '../global-types';
import { getProcessesByName } from '../../../source/main/utils/processes';
import type { WebdriverClient } from '../setup/global-types';
import { getProcessesByName } from '../../../../source/main/utils/processes';

export const waitForDaedalusToExit = async (
client: WebdriverClient,
Expand All @@ -15,5 +15,5 @@ export const waitForDaedalusToExit = async (
};

export const refreshClient = async (client: WebdriverClient) => {
await client.url(`file://${__dirname}/../../../dist/renderer/index.html`);
await client.url(`file://${__dirname}/../../../../dist/renderer/index.html`);
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @flow
import type { Daedalus, WebdriverClient } from '../global-types';
import { getProcessesByName } from '../../../source/main/utils/processes';
import type { Daedalus, WebdriverClient } from '../setup/global-types';
import { getProcessesByName } from '../../../../source/main/utils/processes';

declare var daedalus: Daedalus;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WalletSyncStateTags } from '../../../source/renderer/app/domains/Wallet';
import { WalletSyncStateTags } from '../../../../source/renderer/app/domains/Wallet';

export const isActiveWalletBeingRestored = async client => {
const result = await client.execute(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fs from 'fs';
import path from 'path';
import { generateFileNameWithTimestamp } from '../../../source/common/utils/files';
import ensureDirectoryExists from '../../../source/main/utils/ensureDirectoryExists';
import { generateFileNameWithTimestamp } from '../../../../source/common/utils/files';
import ensureDirectoryExists from '../../../../source/main/utils/ensureDirectoryExists';

export const generateScreenshotFilePath = testName => {
const filePath = path.resolve(__dirname, '../../screenshots', testName);
const filePath = path.resolve(__dirname, '../screenshots', testName);
const fileName = generateFileNameWithTimestamp(testName, 'png');
ensureDirectoryExists(filePath);
return `${filePath}/${fileName}`;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 06f720a

Please sign in to comment.