-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove skip data and type toggle
- Loading branch information
Showing
14 changed files
with
10 additions
and
163 deletions.
There are no files selected for viewing
32 changes: 4 additions & 28 deletions
32
packages/neuron-ui/src/components/GeneralSetting/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
packages/neuron-ui/src/states/stateProvider/actionCreators/skipDataAndType.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
packages/neuron-wallet/src/controllers/skip-data-and-type.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,10 @@ | ||
import Application from '../application' | ||
|
||
/** | ||
* 1. navigate to the general settings handleViewError | ||
* 2. the toggle of skip data and type script should be off | ||
* 3. click on the toggles and their statuses should be updated | ||
* 4. refresh the view and the statuses should be preserved | ||
*/ | ||
export default (app: Application) => { | ||
beforeAll(async () => { | ||
await app.gotoSettingPageFromMenu() | ||
await app.waitUntilLoaded() | ||
}) | ||
|
||
describe('Test general settings', () => { | ||
app.test('Check the initialized statuses', async () => { | ||
const { client } = app.spectron | ||
const toggles = await client.$$('button[role=switch]') | ||
expect((await client.elementIdAttribute(toggles[0].value.ELEMENT, 'aria-checked')).value).toBe('true') | ||
}) | ||
|
||
app.test('toggle SkipDataAndType to false', async () => { | ||
const { client } = app.spectron | ||
await app.waitUntilLoaded() | ||
const toggles = await client.$$('button[role=switch]') | ||
|
||
toggles.forEach((_, idx) => { | ||
client.elementIdClick(toggles[idx].value.ELEMENT) | ||
}) | ||
|
||
await app.waitUntilLoaded() | ||
expect((await client.elementIdAttribute(toggles[0].value.ELEMENT, 'aria-checked')).value).toBe('false') | ||
}) | ||
|
||
test.skip('Toggle statuses should be preserved', async () => {}) | ||
}) | ||
describe.skip('Test general settings', () => {}) | ||
} |