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

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

上级 6315018c
......@@ -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()
......@@ -161,10 +161,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')
......@@ -191,10 +191,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.
先完成此消息的编辑!
想要评论请 注册