Skip to content

Commit

Permalink
Correct GiftCard code
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese committed Jan 8, 2024
1 parent 3e36e6f commit 964c4ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions data/giftcards.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[
{
"cardnumber" : "6036280000000000000",
"code" : "123",
"code" : "100",
"type" : "Givex",
"logo" : "givex"
},
{
"cardnumber" : "6364530000000000",
"code" : "123",
"code" : "100",
"type" : "Generic",
"logo" : "giftcard"
},
{
"cardnumber" : "6006490000000000",
"code" : "123",
"code" : "100",
"type" : "SVS",
"logo" : "svs"
},
{
"cardnumber" : "7777182708544835",
"code" : "123",
"code" : "100",
"type" : "Fiserv",
"logo" : "giftcard"
}
Expand Down
4 changes: 2 additions & 2 deletions e2e/tests/test-extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ test('copy Giftcard details', async ({ page, extensionId }) => {
expect(clipboard).toContain("6036280000000000000");

// code
let code = page.locator('text="123"').first();
let code = page.locator('text="100"').first();
await expect(code).toBeVisible();
await code.click();

clipboard = await page.evaluate("navigator.clipboard.readText()");
expect(clipboard).toContain("123");
expect(clipboard).toContain("100");

});

Expand Down

0 comments on commit 964c4ca

Please sign in to comment.