|
87 | 87 | await t.expect(browserPage.keysSummary.textContent).contains('Total', 'The filter is removed'); |
88 | 88 | }); |
89 | 89 | test |
90 | | -.after(async() => { |
| 90 | + .after(async() => { |
91 | 91 | //Clear and delete database |
92 | | - await browserPage.deleteKeyByName(keyName); |
93 | | - await deleteStandaloneDatabaseApi(ossStandaloneConfig); |
94 | | -})('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name', async t => { //Check filtering labes |
95 | | - keyName = chance.word({ length: 10 }); |
96 | | - //Add new key |
97 | | - await browserPage.addStringKey(keyName); |
98 | | - //Check the filtering starts by press Enter |
99 | | - await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText'); |
100 | | - await t.pressKey('enter'); |
101 | | - await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set'); |
102 | | - //Check the filtering starts by clicks the control |
103 | | - await common.reloadPage(); |
104 | | - await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText'); |
105 | | - await t.click(browserPage.searchButton); |
106 | | - await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set'); |
107 | | -}); |
| 92 | + await browserPage.deleteKeyByName(keyName); |
| 93 | + await deleteStandaloneDatabaseApi(ossStandaloneConfig); |
| 94 | + })('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name', async t => { //Check filtering labes |
| 95 | + keyName = chance.word({ length: 10 }); |
| 96 | + //Add new key |
| 97 | + await browserPage.addStringKey(keyName); |
| 98 | + //Check the filtering starts by press Enter |
| 99 | + await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText'); |
| 100 | + await t.pressKey('enter'); |
| 101 | + await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set'); |
| 102 | + //Check the filtering starts by clicks the control |
| 103 | + await common.reloadPage(); |
| 104 | + await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText'); |
| 105 | + await t.click(browserPage.searchButton); |
| 106 | + await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set'); |
| 107 | + }); |
0 commit comments