Created
January 8, 2023 16:15
-
-
Save nadvolod/ba5179d66ce4c965a0d9d2f38ac1fe80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test('User can create GPW record', async ({page}) => { | |
await dashboardPage.createNewModule(dataModule) | |
// What if instead of comments, our code was self readable? | |
// Verify that module has name: [newModule] is created | |
const expectedMessage = `SuccessModule "${content}" was created.Close` | |
expect(dashboardPage.isModuleCreated(newModule).toEqual(expectedMessage) | |
await dashboardPage.isModuleCreated(newModule) | |
// Remove the new module to avoid spam | |
await dashboardPage.goToHomePage() | |
await dashboardPage.clickModulesTabByIndex() | |
await dashboardPage.deleteTheLastModule() | |
}): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment