Skip to content

Commit

Permalink
fix copyright year dynamic for e2e test copyright text assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
satyam-seth committed Mar 31, 2024
1 parent e1d9c29 commit ab4de01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/dialpad.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ test('Dialpad has expected UI components', async ({ page }) => {

// Assert that copyright para has correct text
const copyrightText = await copyrightPara.innerText();
expect(copyrightText).toEqual('Made by • Satyam Seth Ⓒ 2023');
expect(copyrightText).toEqual(
`Made by • Satyam Seth Ⓒ ${new Date().getFullYear()}`
);
});

test('Dialpad buttons press working', async ({ page }) => {
Expand Down

0 comments on commit ab4de01

Please sign in to comment.