Skip to content

Commit

Permalink
Adjusting tests reference in test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCunha committed May 4, 2023
1 parent 6ba84a8 commit 0b10135
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions login.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ test.describe("Login validations", () => {
const name = await loginPage.getInnerText();

//Adding Xray properties
testInfo.annotations.push({ type: 'test_key', description: 'XT-92' });
testInfo.annotations.push({ type: 'test_key', description: 'CE-4' });
testInfo.annotations.push({ type: 'test_summary', description: 'Successful login.' });
testInfo.annotations.push({ type: 'requirements', description: 'XT-41' });
testInfo.annotations.push({ type: 'requirements', description: 'CE-1' });
testInfo.annotations.push({ type: 'test_description', description: 'Validate that the login is successful.' });

expect(name).toBe('Login succeeded. Now you can logout.');
Expand All @@ -25,9 +25,9 @@ test.describe("Login validations", () => {
const name = await loginPage.getInnerText();

//Adding Xray properties
testInfo.annotations.push({ type: 'test_key', description: 'XT-93' });
testInfo.annotations.push({ type: 'test_key', description: 'CE-7' });
testInfo.annotations.push({ type: 'test_summary', description: 'Unsuccessful login.' });
testInfo.annotations.push({ type: 'requirements', description: 'XT-41' });
testInfo.annotations.push({ type: 'requirements', description: 'CE-1' });
testInfo.annotations.push({ type: 'test_description', description: 'Validate that the login is unsuccessful.' });

// Capture a screenshot and attach it.
Expand Down

0 comments on commit 0b10135

Please sign in to comment.