diff --git a/test/e2e/home.test.js b/test/e2e/home.test.js index 7c59ac0..e5142a7 100644 --- a/test/e2e/home.test.js +++ b/test/e2e/home.test.js @@ -21,7 +21,16 @@ describe("Home page", function() { }); it("shows navigation links", async () => { - const expectedLinks = ["Tools", "Render chords", "Convert tabs", "Guides"]; + const expectedLinks = [ + "Account", + "Log in", + "Sign up", + "Tools", + "Render chords", + "Convert tabs", + "Add/edit songs", + "Guides", + ]; const navLinks = await getAllHtmlForSelector(this.page, ".nav-link"); assert.deepStrictEqual(navLinks, expectedLinks); }); diff --git a/test/e2e/song.test.js b/test/e2e/song.test.js index e80e864..2e97f51 100644 --- a/test/e2e/song.test.js +++ b/test/e2e/song.test.js @@ -22,20 +22,20 @@ describe("Song view", function() { }); it("shows the chords + lyrics", async () => { - const chordLine = "AmDeath doesn’t discriminate F"; + const chordLine = "AmLove doesn't discriminate C"; const lines = await getAllTextForSelector(this.page, ".chordLyricLine"); assert(lines.includes(chordLine)); }); it("shows lines without chords", async () => { - const tabLine = "preacher, preacher, preacher"; + const tabLine = "wait for it, wait for it, wait for it,"; const lines = await getAllTextForSelector(this.page, ".line"); assert(lines.includes(tabLine)); }); it("shows a bunch of chords", async () => { await this.page.click("#instrument-ukulele"); - const knownChords = ["C", "Am", "Em", "F", "G", "Gsus4"]; + const knownChords = ["C", "Am", "Em", "Gsus4", "F6", "F", "Fmaj7", "C6"]; await checkChords(this.page, knownChords); });