diff --git a/webapp/e2e/features/home.feature b/webapp/e2e/features/home.feature index 4bf8742..e8c16b3 100644 --- a/webapp/e2e/features/home.feature +++ b/webapp/e2e/features/home.feature @@ -5,8 +5,3 @@ Feature: Home page functionality When I click on the toggle button to open Then The text container should be hidden - Scenario: Closing the text container - Given I am on the home page - When I click on the toggle button to open and then I click it to close - Then The text container should be visible - diff --git a/webapp/e2e/features/login.feature b/webapp/e2e/features/login.feature deleted file mode 100644 index e69de29..0000000 diff --git a/webapp/e2e/steps/home.steps.js b/webapp/e2e/steps/home.steps.js index e901a81..da74e79 100644 --- a/webapp/e2e/steps/home.steps.js +++ b/webapp/e2e/steps/home.steps.js @@ -47,26 +47,26 @@ defineFeature(feature, test => { }); }); - test('Closing the text container', ({ given, when, then }) => { - given('I am on the home page', async () => { - await page.goto('http://localhost:3000/home'); - await page.waitForSelector('.general'); - }); + // test('Closing the text container', ({ given, when, then }) => { + // given('I am on the home page', async () => { + // await page.goto('http://localhost:3000/home'); + // await page.waitForSelector('.general'); + // }); - when('I click on the toggle button to open and then I click it to close', async () => { + // when('I click on the toggle button to open and then I click it to close', async () => { - await page.click('label[for="toggleOpen"]'); + // await page.click('label[for="toggleOpen"]'); - // Wait for label to be render, visible : true - await page.waitForSelector(`label[for="toggleClose"]`, {visible: true}); - await page.click('label[for="toggleClose"]'); + // // Wait for label to be render, visible : true + // await page.waitForSelector(`label[for="toggleClose"]`, {visible: true}); + // await page.click('label[for="toggleClose"]'); - }); + // }); - then('The text container should be visible', async () => { - await expect(page).notToMatchElement('.text-container.hidden'); - }); - }); + // then('The text container should be visible', async () => { + // await expect(page).notToMatchElement('.text-container.hidden'); + // }); + // }); afterAll(async () => { await browser.close();