Skip to content

Instantly share code, notes, and snippets.

@nadvolod
Created January 8, 2023 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nadvolod/ba5179d66ce4c965a0d9d2f38ac1fe80 to your computer and use it in GitHub Desktop.
Save nadvolod/ba5179d66ce4c965a0d9d2f38ac1fe80 to your computer and use it in GitHub Desktop.
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