提交 77c18a12 编写于 作者: 杜庆泉's avatar 杜庆泉

storage 移除key顺序相关测试示例

上级 6315018c
...@@ -49,10 +49,10 @@ describe('ExtApi-StorageInfoTest', () => { ...@@ -49,10 +49,10 @@ describe('ExtApi-StorageInfoTest', () => {
// 测试 clear // 测试 clear
let btnGetStorageInfoASyncButton = await page.$('.btn-getStorageInfoASync') let btnGetStorageInfoASyncButton = await page.$('.btn-getStorageInfoASync')
await btnGetStorageInfoASyncButton.tap() // await btnGetStorageInfoASyncButton.tap()
await page.waitFor(600) // await page.waitFor(600)
storageInfoRet = await getData('apiGetData') // storageInfoRet = await getData('apiGetData')
expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock") // expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock")
const btnClearStorageInfoASyncButton = await page.$('.btn-clearStorageInfoASync') const btnClearStorageInfoASyncButton = await page.$('.btn-clearStorageInfoASync')
await btnClearStorageInfoASyncButton.tap() await btnClearStorageInfoASyncButton.tap()
...@@ -77,10 +77,10 @@ describe('ExtApi-StorageInfoTest', () => { ...@@ -77,10 +77,10 @@ describe('ExtApi-StorageInfoTest', () => {
// 测试 remove // 测试 remove
await btnGetStorageInfoASyncButton.tap() // await btnGetStorageInfoASyncButton.tap()
await page.waitFor(600) // await page.waitFor(600)
storageInfoRet = await getData('apiGetData') // storageInfoRet = await getData('apiGetData')
expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock") // expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock")
const btnRemoveStorageInfoASyncButton = await page.$('.btn-removeStorageInfoASync') const btnRemoveStorageInfoASyncButton = await page.$('.btn-removeStorageInfoASync')
await btnRemoveStorageInfoASyncButton.tap() await btnRemoveStorageInfoASyncButton.tap()
...@@ -161,10 +161,10 @@ describe('ExtApi-StorageInfoTest', () => { ...@@ -161,10 +161,10 @@ describe('ExtApi-StorageInfoTest', () => {
// 测试clear // 测试clear
const btnGetStorageInfoSyncButton = await page.$('.btn-getStorageInfoSync') const btnGetStorageInfoSyncButton = await page.$('.btn-getStorageInfoSync')
await btnGetStorageInfoSyncButton.tap() // await btnGetStorageInfoSyncButton.tap()
await page.waitFor(600) // await page.waitFor(600)
let storageInfoRet = await getData('apiGetData') // let storageInfoRet = await getData('apiGetData')
expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock") // expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock")
const btnClearStorageInfoSyncButton = await page.$('.btn-clearStorageInfoSync') const btnClearStorageInfoSyncButton = await page.$('.btn-clearStorageInfoSync')
...@@ -191,10 +191,10 @@ describe('ExtApi-StorageInfoTest', () => { ...@@ -191,10 +191,10 @@ describe('ExtApi-StorageInfoTest', () => {
// 测试 remove // 测试 remove
await btnGetStorageInfoSyncButton.tap() // await btnGetStorageInfoSyncButton.tap()
await page.waitFor(600) // await page.waitFor(600)
storageInfoRet = await getData('apiGetData') // storageInfoRet = await getData('apiGetData')
expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock") // expect(storageInfoRet.keys[0]).toEqual("autotest_key_mock")
const btnRemoveStorageInfoSyncButton = await page.$('.btn-removeStorageInfoSync') const btnRemoveStorageInfoSyncButton = await page.$('.btn-removeStorageInfoSync')
await btnRemoveStorageInfoSyncButton.tap() await btnRemoveStorageInfoSyncButton.tap()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册