We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f25d299 commit 0f0eb1cCopy full SHA for 0f0eb1c
src/page-objects/cli.page.ts
@@ -211,11 +211,15 @@ export class CliPage {
211
return {accessKey: accessKey.trim()};
212
}
213
214
- async close({revertConfig}: {revertConfig: boolean} = {revertConfig: true}): Promise<void> {
215
- if (revertConfig) {
216
- await this.revertConfig();
+ async close({cleanUp}: {cleanUp: boolean} = {cleanUp: true}): Promise<void> {
+ if (cleanUp) {
+ await this.cleanUp();
217
218
219
await this.logout();
220
221
+
222
+ async cleanUp(): Promise<void> {
223
+ await this.revertConfig();
224
+ }
225
0 commit comments