Skip to content

Commit 162b58b

Browse files
Test cases for edit and delete are added in variables.spec.ts #15
1 parent ca04cce commit 162b58b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

tests/RPM/variables.spec.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Page } from '@playwright/test';
44
import { login, host } from '../shared';
55
const { checkTitle } = require('./utils/uniqueFunction');
66

7-
const { checkVariables, createVariable, findVariable, deleteVariable, editVariable } = require('./utils/variableFunctions');
7+
const { checkVariables, createVariable, findVariable, deleteVariable, editVariable, findEditedVariable } = require('./utils/variableFunctions');
88

99

1010
// Annotate entire file as serial.
@@ -121,10 +121,17 @@ test.describe('Variable', () => {
121121
await findVariable(page, variable)
122122
});
123123

124-
// test('Edit variable', async () => {
125-
// test.slow();
126-
// await editVariable(page, variable);
127-
// });
124+
test('Edit variable', async () => {
125+
test.slow();
126+
await editVariable(page, variable);
127+
});
128+
129+
test('Find the edited variable in the table', async () => {
130+
await findEditedVariable(page, variable)
131+
});
132+
test('Delete edited variable', async () => {
133+
await deleteVariable(page);
134+
});
128135
});
129136
});
130137

0 commit comments

Comments
 (0)