diff --git a/exercise4-puppeteer/__snapshots__/a11y-tree.test.js.snap b/exercise4-puppeteer/__snapshots__/a11y-tree.test.js.snap index 77c430e..8cd6935 100644 --- a/exercise4-puppeteer/__snapshots__/a11y-tree.test.js.snap +++ b/exercise4-puppeteer/__snapshots__/a11y-tree.test.js.snap @@ -130,4 +130,4 @@ Object { "name": "CampSpots", "role": "RootWebArea", } -`; +`; \ No newline at end of file diff --git a/exercise4-puppeteer/a11y-tree.json b/exercise4-puppeteer/a11y-tree.json deleted file mode 100644 index cb98ee4..0000000 --- a/exercise4-puppeteer/a11y-tree.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "role": "RootWebArea", - "name": "CampSpots Passes", - "children": [ - { - "role": "heading", - "name": "CampSpots", - "level": 1 - }, - { - "role": "link", - "name": "CampSpots" - }, - { - "role": "heading", - "name": "Plan Your Trip", - "level": 2 - }, - { - "role": "heading", - "name": "Ways to Stay", - "level": 2 - }, - { - "role": "heading", - "name": "Resources", - "level": 2 - }, - { - "role": "link", - "name": "Login" - }, - { - "role": "generic", - "name": "Pick a Plan and Start Your Adventure Today!", - "children": [ - { - "role": "heading", - "name": "Pick a Plan and Start Your Adventure Today!", - "level": 2 - }, - { - "role": "heading", - "name": "CampSpots Basic", - "level": 3 - }, - { - "role": "heading", - "name": "$99/year", - "level": 4 - }, - { - "role": "StaticText", - "name": "Renewed annually" - }, - { - "role": "StaticText", - "name": "Unlimited overnight stays with No Camping Fees" - }, - { - "role": "StaticText", - "name": "100% money back guarantee" - }, - { - "role": "StaticText", - "name": "Access to spa facilities & restaurants" - }, - { - "role": "button", - "name": "Join Now" - }, - { - "role": "StaticText", - "name": "Vitae maximus turpis tempor" - }, - { - "role": "StaticText", - "name": "nec" - }, - { - "role": "StaticText", - "name": "." - }, - { - "role": "heading", - "name": "CampSpots Pro", - "level": 3 - }, - { - "role": "heading", - "name": "$139/year", - "level": 4 - }, - { - "role": "StaticText", - "name": "Renewed annually" - }, - { - "role": "StaticText", - "name": "Unlimited overnight stays with No Camping Fees" - }, - { - "role": "StaticText", - "name": "100% money back guarantee" - }, - { - "role": "StaticText", - "name": "Access to spa facilities & restaurants" - }, - { - "role": "button", - "name": "Join Now" - }, - { - "role": "StaticText", - "name": "Lorem ipsum dolor" - }, - { - "role": "StaticText", - "name": "sit" - }, - { - "role": "StaticText", - "name": "amet, consectetur adipiscing elit." - } - ] - } - ] -} \ No newline at end of file diff --git a/exercise4-puppeteer/answer/a11y-tree.test.js b/exercise4-puppeteer/answer/a11y-tree.t.js similarity index 93% rename from exercise4-puppeteer/answer/a11y-tree.test.js rename to exercise4-puppeteer/answer/a11y-tree.t.js index 8a1f8db..8acb20e 100644 --- a/exercise4-puppeteer/answer/a11y-tree.test.js +++ b/exercise4-puppeteer/answer/a11y-tree.t.js @@ -35,7 +35,7 @@ describe('Accessibility Tree', () => { }) it(`has the correct axTree`, async () => { - const axTree = await page.accessibility.snapshot({ page }) + const axTree = await page.accessibility.snapshot() expect(axTree).toMatchSnapshot() }) }) \ No newline at end of file