提交 8694c584 编写于 作者: 杜庆泉's avatar 杜庆泉 提交者: 雪洛

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

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